示例#1
0
func init() {
	args := gocli.NewArgs(nil)
	args.RegisterFlag(dataCenterFlag())
	args.RegisterString(CLI_NAME, "name", true, "", "Storage Name")
	args.RegisterInt(CLI_SIZE, "size", true, 0, "Storage Size")
	args.RegisterString(CLI_IMAGE_ID, "image_id", false, "", "Mount Image Id")
	//CreateStorage = &gocli.Action{Handler: CreateStorageHandler, Args: args, Description: "Create Storage"}
}
示例#2
0
func init() {
	//ListAllSnapshots = &gocli.Action{Handler: ListAllSnapshotsHandler, Description: "List Snapshots"}

	args := gocli.NewArgs(nil)
	args.RegisterString(CLI_ROLLBACK_SNAPSHOT_STORAGE_ID, "storage_id", true, "", "Storage ID")
	args.RegisterString(CLI_ROLLBACK_SNAPSHOT_SNAPSHOT_ID, "snapshot_id", true, "", "Snapshot ID")

	//RollbackSnapshot = &gocli.Action{Handler: RollbackSnapshotHandler, Description: "Rollback Snapshot", Args: args}
}