Documentation ¶
Index ¶
- func AddUserAuthorizedKey(client lib.Client, username string, key string) error
- func CancelMigrationJob(client lib.Client, id int) (err error)
- func CreateAPIKey(client lib.Client, username string, spec brain.APIKey) (apiKey brain.APIKey, err error)
- func CreateMigrationJob(client lib.Client, mjs brain.MigrationJobSpec) (mj brain.MigrationJob, err error)
- func CreateVMDefault(client lib.Client, spec brain.VirtualMachineDefault) (created brain.VirtualMachineDefault, err error)
- func DeleteAPIKey(client lib.Client, id string) (err error)
- func DeleteDiscByID(client lib.Client, discID string) (err error)
- func DeleteUserAuthorizedKey(client lib.Client, username string, key string) error
- func EditMigrationJob(client lib.Client, id int, migrationEdit brain.MigrationJobModification) (err error)
- func GetAPIKeys(client lib.Client) (apiKeys brain.APIKeys, err error)
- func GetDiscsOnStoragePool(client lib.Client, id string, at string) (servers brain.Discs, err error)
- func GetDiscsOnTail(client lib.Client, id string, at string) (servers brain.Discs, err error)
- func GetMigrationJob(client lib.Client, id int) (mj brain.MigrationJob, err error)
- func GetMigrationJobActiveMigrations(client lib.Client, id int) (ms brain.Migrations, err error)
- func GetMigrationJobs(client lib.Client) (mjs brain.MigrationJobs, err error)
- func GetServersOnHead(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
- func GetServersOnStoragePool(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
- func GetServersOnTail(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
- func MoveDisc(client lib.Client, vm lib.VirtualMachineName, discLabelOrID string, ...) (err error)
- func StartVirtualMachineWithAppliance(client lib.Client, vmName lib.VirtualMachineName, applianceName string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserAuthorizedKey ¶
AddUserAuthorizedKey adds a key to the named user. These keys are used for logging into the management IPs for cloud servers
func CancelMigrationJob ¶
CancelMigrationJob cancels all migrations on a job, given its ID
func CreateAPIKey ¶
func CreateAPIKey(client lib.Client, username string, spec brain.APIKey) (apiKey brain.APIKey, err error)
CreateAPIKey creates an API key for the given user, then returns it. Neither the ID nor APIKey field should be specified in the spec. username may be blank if the spec.UserID is set.
func CreateMigrationJob ¶
func CreateMigrationJob(client lib.Client, mjs brain.MigrationJobSpec) (mj brain.MigrationJob, err error)
CreateMigrationJob creates a new migration job as per the supplied specification, returning the newly created job on success or an error otherwise.
func CreateVMDefault ¶
func CreateVMDefault(client lib.Client, spec brain.VirtualMachineDefault) (created brain.VirtualMachineDefault, err error)
CreateVMDefault creates a new VM Default with the specified parameters, returning the newly created VM Default on success or an error otherwise.
func DeleteAPIKey ¶
DeleteAPIKey takes an API key id or label and revokes it.
func DeleteDiscByID ¶
DeleteDiscByID takes a disc ID and removes the specified disc from the given virtual machine
func DeleteUserAuthorizedKey ¶
DeleteUserAuthorizedKey removes a key from a user. The key may be specified in full or just the comment part (as long as it's unique)
func EditMigrationJob ¶
func EditMigrationJob(client lib.Client, id int, migrationEdit brain.MigrationJobModification) (err error)
EditMigrationJob allows you to cancel individual or multiples discs, pools, or tails and change the priority for a job, given its ID
func GetAPIKeys ¶
GetAPIKeys gets all API keys that you can currently see. In general this means those for your user, but users with cluster_admin will be able to see all API keys on the cluster
func GetDiscsOnStoragePool ¶
func GetDiscsOnStoragePool(client lib.Client, id string, at string) (servers brain.Discs, err error)
GetDiscsOnStoragePool returns an array of discs on specified storage pool
func GetDiscsOnTail ¶
GetDiscsOnTail returns an array of discs on specified tail
func GetMigrationJob ¶
GetMigrationJob returns a single migration job, given its ID
func GetMigrationJobActiveMigrations ¶
GetMigrationJobActiveMigrations returns a list of active migrations associated with the given migration job.
func GetMigrationJobs ¶
func GetMigrationJobs(client lib.Client) (mjs brain.MigrationJobs, err error)
GetMigrationJobs returns an array of unfinished migration jobs
func GetServersOnHead ¶
func GetServersOnHead(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
GetServersOnHead returns an array of servers on specified head
func GetServersOnStoragePool ¶
func GetServersOnStoragePool(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
GetServersOnStoragePool returns an array of servers on specified storage pool
func GetServersOnTail ¶
func GetServersOnTail(client lib.Client, id string, at string) (servers brain.VirtualMachines, err error)
GetServersOnTail returns an array of servers on specified tail
func MoveDisc ¶
func MoveDisc(client lib.Client, vm lib.VirtualMachineName, discLabelOrID string, newVMName lib.VirtualMachineName) (err error)
MoveDisc moves the specified disc from its current server to a given server
func StartVirtualMachineWithAppliance ¶
func StartVirtualMachineWithAppliance(client lib.Client, vmName lib.VirtualMachineName, applianceName string) (err error)
StartVirtualMachineWithAppliance starts the named virtual machine using the named appliance. returns nil on success or an error otherwise.
Types ¶
This section is empty.
Source Files ¶
- add_user_authorized_key.go
- create_api_key.go
- create_migration_job.go
- create_vmdefault.go
- delete_api_key.go
- delete_disc.go
- delete_user_authorized_key.go
- edit_migration_job.go
- get_api_keys.go
- get_dependant_discs.go
- get_dependant_servers.go
- get_migration_job.go
- get_migration_job_active_migrations.go
- get_migration_jobs.go
- move_disc.go
- start_vm_with_appliance.go