Documentation ¶
Index ¶
- type CliContext
- func (c CliContext) App() *cli.App
- func (c CliContext) Args() cli.Args
- func (c CliContext) Bool(name string) bool
- func (c CliContext) BoolT(name string) bool
- func (c CliContext) Command() cli.Command
- func (c CliContext) Duration(name string) time.Duration
- func (c CliContext) FlagNames() (names []string)
- func (c CliContext) Float64(name string) float64
- func (c CliContext) Generic(name string) interface{}
- func (c CliContext) GlobalBool(name string) bool
- func (c CliContext) GlobalBoolT(name string) bool
- func (c CliContext) GlobalDuration(name string) time.Duration
- func (c CliContext) GlobalFlagNames() (names []string)
- func (c CliContext) GlobalFloat64(name string) float64
- func (c CliContext) GlobalGeneric(name string) interface{}
- func (c CliContext) GlobalInt(name string) int
- func (c CliContext) GlobalInt64(name string) int64
- func (c CliContext) GlobalInt64Slice(name string) []int64
- func (c CliContext) GlobalIntSlice(name string) []int
- func (c CliContext) GlobalIsSet(name string) bool
- func (c CliContext) GlobalSet(name, value string) error
- func (c CliContext) GlobalString(name string) string
- func (c CliContext) GlobalStringSlice(name string) []string
- func (c CliContext) GlobalUint(name string) uint
- func (c CliContext) GlobalUint64(name string) uint64
- func (c CliContext) Int(name string) int
- func (c CliContext) Int64(name string) int64
- func (c CliContext) Int64Slice(name string) []int64
- func (c CliContext) IntSlice(name string) []int
- func (c CliContext) IsSet(name string) bool
- func (c CliContext) NArg() int
- func (c CliContext) NumFlags() int
- func (c CliContext) Parent() *cli.Context
- func (c CliContext) Set(name, value string) error
- func (c CliContext) String(name string) string
- func (c CliContext) StringSlice(name string) []string
- func (c CliContext) Uint(name string) uint
- func (c CliContext) Uint64(name string) uint64
- type Client
- func (c *Client) AddIP(name *lib.VirtualMachineName, spec *brain.IPCreateRequest) (brain.IPs, error)
- func (c *Client) AddUserAuthorizedKey(name, key string) error
- func (c *Client) AdminCreateGroup(name lib.GroupName, vlanNum int) error
- func (c *Client) AllowInsecureRequests()
- func (c *Client) ApproveVM(name lib.VirtualMachineName, powerOn bool) error
- func (c *Client) AuthWithCredentials(credents auth3.Credentials) error
- func (c *Client) AuthWithToken(token string) error
- func (c *Client) BuildRequest(method string, endpoint lib.Endpoint, path string, parts ...string) (*lib.Request, error)
- func (c *Client) BuildRequestNoAuth(method string, endpoint lib.Endpoint, path string, parts ...string) (*lib.Request, error)
- func (c *Client) CancelDiscMigration(id int) error
- func (c *Client) CancelVMMigration(id int) error
- func (c *Client) CreateAccount(acc *lib.Account) (*lib.Account, error)
- func (c *Client) CreateBackup(server lib.VirtualMachineName, discLabelOrID string) (brain.Backup, error)
- func (c *Client) CreateBackupSchedule(server lib.VirtualMachineName, discLabelOrID string, start string, ...) (brain.BackupSchedule, error)
- func (c *Client) CreateCreditCard(cc *spp.CreditCard) (string, error)
- func (c *Client) CreateCreditCardWithToken(cc *spp.CreditCard, token string) (string, error)
- func (c *Client) CreateDisc(name *lib.VirtualMachineName, disc brain.Disc) error
- func (c *Client) CreateGroup(name *lib.GroupName) error
- func (c *Client) CreateIPRange(ipRange string, vlanNum int) error
- func (c *Client) CreateUser(username string, privilege string) error
- func (c *Client) CreateVirtualMachine(group *lib.GroupName, vm brain.VirtualMachineSpec) (*brain.VirtualMachine, error)
- func (c *Client) DeleteBackup(server lib.VirtualMachineName, discLabelOrID string, backupLabelOrID string) error
- func (c *Client) DeleteBackupSchedule(server lib.VirtualMachineName, discLabelOrID string, id int) error
- func (c *Client) DeleteDisc(name *lib.VirtualMachineName, disc string) error
- func (c *Client) DeleteGroup(name *lib.GroupName) error
- func (c *Client) DeleteUserAuthorizedKey(name, key string) error
- func (c *Client) DeleteVLAN(id int) error
- func (c *Client) DeleteVirtualMachine(name *lib.VirtualMachineName, purge bool) error
- func (c *Client) EmptyHead(idOrLabel string) error
- func (c *Client) EmptyStoragePool(idOrLabel string) error
- func (c *Client) EnsureAccountName(name *string) error
- func (c *Client) EnsureGroupName(name *lib.GroupName) error
- func (c *Client) EnsureVirtualMachineName(name *lib.VirtualMachineName) error
- func (c *Client) GetAccount(name string) (account *lib.Account, err error)
- func (c *Client) GetAccounts() (accounts []*lib.Account, err error)
- func (c *Client) GetBackups(server lib.VirtualMachineName, discLabelOrID string) (brain.Backups, error)
- func (c *Client) GetDefaultAccount() (account *lib.Account, err error)
- func (c *Client) GetDisc(name *lib.VirtualMachineName, discId string) (disc *brain.Disc, err error)
- func (c *Client) GetEndpoint() string
- func (c *Client) GetGroup(name *lib.GroupName) (*brain.Group, error)
- func (c *Client) GetHead(idOrLabel string) (*brain.Head, error)
- func (c *Client) GetHeads() ([]*brain.Head, error)
- func (c *Client) GetIPRange(idOrCIDR string) (*brain.IPRange, error)
- func (c *Client) GetIPRanges() ([]*brain.IPRange, error)
- func (c *Client) GetMigratingDiscs() ([]brain.Disc, error)
- func (c *Client) GetMigratingVMs() ([]*brain.VirtualMachine, error)
- func (c *Client) GetPrivileges(username string) (privs brain.Privileges, err error)
- func (c *Client) GetPrivilegesForAccount(accountName string) (privs brain.Privileges, err error)
- func (c *Client) GetPrivilegesForGroup(group lib.GroupName) (privs brain.Privileges, err error)
- func (c *Client) GetPrivilegesForVirtualMachine(vm lib.VirtualMachineName) (privs brain.Privileges, err error)
- func (c *Client) GetRecentVMs() ([]*brain.VirtualMachine, error)
- func (c *Client) GetSPPToken(cc spp.CreditCard, owner *billing.Person) (string, error)
- func (c *Client) GetSessionFactors() []string
- func (c *Client) GetSessionToken() string
- func (c *Client) GetSessionUser() string
- func (c *Client) GetStoppedEligibleVMs() ([]*brain.VirtualMachine, error)
- func (c *Client) GetStoragePool(idOrLabel string) (*brain.StoragePool, error)
- func (c *Client) GetStoragePools() ([]*brain.StoragePool, error)
- func (c *Client) GetTail(idOrLabel string) (*brain.Tail, error)
- func (c *Client) GetTails() ([]*brain.Tail, error)
- func (c *Client) GetUser(name string) (*brain.User, error)
- func (c *Client) GetVLAN(num int) (*brain.VLAN, error)
- func (c *Client) GetVLANs() ([]*brain.VLAN, error)
- func (c *Client) GetVirtualMachine(name *lib.VirtualMachineName) (vm *brain.VirtualMachine, err error)
- func (c *Client) GrantPrivilege(priv brain.Privilege) (err error)
- func (c *Client) MigrateDisc(disc int, newStoragePool string) error
- func (c *Client) MigrateVirtualMachine(vmName lib.VirtualMachineName, newHead string) error
- func (c *Client) MoveVirtualMachine(oldName *lib.VirtualMachineName, newName *lib.VirtualMachineName) error
- func (c *Client) NewRequest(method string, url *url.URL) *lib.Request
- func (c *Client) NewRequestNoAuth(method string, url *url.URL) *lib.Request
- func (c *Client) ParseAccountName(name string, defaults ...string) string
- func (c *Client) ParseGroupName(name string, defaults ...*lib.GroupName) *lib.GroupName
- func (c *Client) ParseVirtualMachineName(name string, defaults ...*lib.VirtualMachineName) (*lib.VirtualMachineName, error)
- func (c *Client) ReadDefinitions() (*lib.Definitions, error)
- func (c *Client) ReapVMs() error
- func (c *Client) RegisterNewAccount(acc *lib.Account) (*lib.Account, error)
- func (c *Client) RegradeDisc(disc int, newGrade string) error
- func (c *Client) ReifyDisc(id int) error
- func (c *Client) ReimageVirtualMachine(name *lib.VirtualMachineName, image *brain.ImageInstall) error
- func (c *Client) RejectVM(name lib.VirtualMachineName, reason string) error
- func (c *Client) Request(auth bool, method string, location string, requestBody string) (req *http.Request, res *http.Response, err error)
- func (c *Client) RequestAndRead(auth bool, method, path, requestBody string) (responseBody []byte, err error)
- func (c *Client) RequestAndUnmarshal(auth bool, method, path, requestBody string, output interface{}) error
- func (c *Client) ResetVirtualMachine(name *lib.VirtualMachineName) error
- func (c *Client) ResizeDisc(name *lib.VirtualMachineName, id string, size int) error
- func (c *Client) RestartVirtualMachine(name *lib.VirtualMachineName) error
- func (c *Client) RestoreBackup(server lib.VirtualMachineName, discLabelOrID string, backupLabelOrID string) (brain.Backup, error)
- func (c *Client) RevokePrivilege(priv brain.Privilege) (err error)
- func (c *Client) SetDebugLevel(level int)
- func (c *Client) SetDiscIopsLimit(name *lib.VirtualMachineName, id string, size int) error
- func (c *Client) SetVirtualMachineCDROM(name *lib.VirtualMachineName, url string) error
- func (c *Client) SetVirtualMachineCores(name *lib.VirtualMachineName, cores int) error
- func (c *Client) SetVirtualMachineHardwareProfile(name *lib.VirtualMachineName, hwprofile string, locked ...bool) error
- func (c *Client) SetVirtualMachineHardwareProfileLock(name *lib.VirtualMachineName, locked bool) error
- func (c *Client) SetVirtualMachineMemory(name *lib.VirtualMachineName, memory int) error
- func (c *Client) ShutdownVirtualMachine(name *lib.VirtualMachineName, stayoff bool) error
- func (c *Client) StartVirtualMachine(name *lib.VirtualMachineName) error
- func (c *Client) StopVirtualMachine(name *lib.VirtualMachineName) error
- func (c *Client) UndeleteVirtualMachine(name *lib.VirtualMachineName) error
- func (c *Client) UpdateHead(idOrLabel string, options lib.UpdateHead) error
- func (c *Client) UpdateStoragePool(idOrLabel string, options lib.UpdateStoragePool) error
- func (c *Client) UpdateTail(idOrLabel string, options lib.UpdateTail) error
- func (c *Client) UpdateVMMigration(name lib.VirtualMachineName, speed *int64, downtime *int) error
- type Config
- func (c *Config) ConfigDir() string
- func (c *Config) EndpointName() string
- func (c *Config) Force() bool
- func (c *Config) Get(name string) (string, error)
- func (c *Config) GetAll() ([]util.ConfigVar, error)
- func (c *Config) GetBool(name string) (bool, error)
- func (c *Config) GetDebugLevel() int
- func (c *Config) GetGroup() *lib.GroupName
- func (c *Config) GetIgnoreErr(name string) string
- func (c *Config) GetSessionValidity() (int, error)
- func (c *Config) GetV(name string) (util.ConfigVar, error)
- func (c *Config) GetVirtualMachine() *lib.VirtualMachineName
- func (c *Config) ImportFlags(*flag.FlagSet) []string
- func (c *Config) PanelURL() string
- func (c *Config) Set(name, value, source string)
- func (c *Config) SetPersistent(name, value, source string) error
- func (c *Config) Unset(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliContext ¶
func (CliContext) App ¶
func (c CliContext) App() *cli.App
func (CliContext) Args ¶
func (c CliContext) Args() cli.Args
func (CliContext) Bool ¶
func (c CliContext) Bool(name string) bool
func (CliContext) BoolT ¶
func (c CliContext) BoolT(name string) bool
func (CliContext) Command ¶
func (c CliContext) Command() cli.Command
func (CliContext) FlagNames ¶
func (c CliContext) FlagNames() (names []string)
func (CliContext) Float64 ¶
func (c CliContext) Float64(name string) float64
func (CliContext) Generic ¶
func (c CliContext) Generic(name string) interface{}
func (CliContext) GlobalBool ¶
func (c CliContext) GlobalBool(name string) bool
func (CliContext) GlobalBoolT ¶
func (c CliContext) GlobalBoolT(name string) bool
func (CliContext) GlobalDuration ¶
func (c CliContext) GlobalDuration(name string) time.Duration
func (CliContext) GlobalFlagNames ¶
func (c CliContext) GlobalFlagNames() (names []string)
func (CliContext) GlobalFloat64 ¶
func (c CliContext) GlobalFloat64(name string) float64
func (CliContext) GlobalGeneric ¶
func (c CliContext) GlobalGeneric(name string) interface{}
func (CliContext) GlobalInt ¶
func (c CliContext) GlobalInt(name string) int
func (CliContext) GlobalInt64 ¶
func (c CliContext) GlobalInt64(name string) int64
func (CliContext) GlobalInt64Slice ¶
func (c CliContext) GlobalInt64Slice(name string) []int64
func (CliContext) GlobalIntSlice ¶
func (c CliContext) GlobalIntSlice(name string) []int
func (CliContext) GlobalIsSet ¶
func (c CliContext) GlobalIsSet(name string) bool
func (CliContext) GlobalSet ¶
func (c CliContext) GlobalSet(name, value string) error
func (CliContext) GlobalString ¶
func (c CliContext) GlobalString(name string) string
func (CliContext) GlobalStringSlice ¶
func (c CliContext) GlobalStringSlice(name string) []string
func (CliContext) GlobalUint ¶
func (c CliContext) GlobalUint(name string) uint
func (CliContext) GlobalUint64 ¶
func (c CliContext) GlobalUint64(name string) uint64
func (CliContext) Int ¶
func (c CliContext) Int(name string) int
func (CliContext) Int64 ¶
func (c CliContext) Int64(name string) int64
func (CliContext) Int64Slice ¶
func (c CliContext) Int64Slice(name string) []int64
func (CliContext) IntSlice ¶
func (c CliContext) IntSlice(name string) []int
func (CliContext) IsSet ¶
func (c CliContext) IsSet(name string) bool
func (CliContext) NArg ¶
func (c CliContext) NArg() int
func (CliContext) NumFlags ¶
func (c CliContext) NumFlags() int
func (CliContext) Parent ¶
func (c CliContext) Parent() *cli.Context
func (CliContext) Set ¶
func (c CliContext) Set(name, value string) error
func (CliContext) String ¶
func (c CliContext) String(name string) string
func (CliContext) StringSlice ¶
func (c CliContext) StringSlice(name string) []string
func (CliContext) Uint ¶
func (c CliContext) Uint(name string) uint
func (CliContext) Uint64 ¶
func (c CliContext) Uint64(name string) uint64
type Client ¶
func (*Client) AddIP ¶
func (c *Client) AddIP(name *lib.VirtualMachineName, spec *brain.IPCreateRequest) (brain.IPs, error)
func (*Client) AddUserAuthorizedKey ¶
func (*Client) AdminCreateGroup ¶
func (*Client) AllowInsecureRequests ¶
func (c *Client) AllowInsecureRequests()
func (*Client) ApproveVM ¶
func (c *Client) ApproveVM(name lib.VirtualMachineName, powerOn bool) error
func (*Client) AuthWithCredentials ¶
func (c *Client) AuthWithCredentials(credents auth3.Credentials) error
func (*Client) AuthWithToken ¶
func (*Client) BuildRequest ¶
func (*Client) BuildRequestNoAuth ¶
func (*Client) CancelDiscMigration ¶
func (*Client) CancelVMMigration ¶
func (*Client) CreateAccount ¶
func (*Client) CreateBackup ¶
func (*Client) CreateBackupSchedule ¶
func (c *Client) CreateBackupSchedule(server lib.VirtualMachineName, discLabelOrID string, start string, interval int) (brain.BackupSchedule, error)
func (*Client) CreateCreditCard ¶
func (c *Client) CreateCreditCard(cc *spp.CreditCard) (string, error)
func (*Client) CreateCreditCardWithToken ¶
func (*Client) CreateDisc ¶
func (*Client) CreateVirtualMachine ¶
func (c *Client) CreateVirtualMachine(group *lib.GroupName, vm brain.VirtualMachineSpec) (*brain.VirtualMachine, error)
func (*Client) DeleteBackup ¶
func (*Client) DeleteBackupSchedule ¶
func (*Client) DeleteDisc ¶
func (c *Client) DeleteDisc(name *lib.VirtualMachineName, disc string) error
func (*Client) DeleteUserAuthorizedKey ¶
func (*Client) DeleteVLAN ¶
func (*Client) DeleteVirtualMachine ¶
func (c *Client) DeleteVirtualMachine(name *lib.VirtualMachineName, purge bool) error
func (*Client) EmptyStoragePool ¶
func (*Client) EnsureAccountName ¶ added in v2.5.1
func (*Client) EnsureGroupName ¶ added in v2.5.1
func (*Client) EnsureVirtualMachineName ¶ added in v2.5.1
func (c *Client) EnsureVirtualMachineName(name *lib.VirtualMachineName) error
func (*Client) GetAccount ¶
func (*Client) GetBackups ¶
func (*Client) GetDefaultAccount ¶
func (*Client) GetEndpoint ¶
func (*Client) GetMigratingDiscs ¶ added in v2.5.1
func (*Client) GetMigratingVMs ¶
func (c *Client) GetMigratingVMs() ([]*brain.VirtualMachine, error)
func (*Client) GetPrivileges ¶
func (c *Client) GetPrivileges(username string) (privs brain.Privileges, err error)
func (*Client) GetPrivilegesForAccount ¶
func (c *Client) GetPrivilegesForAccount(accountName string) (privs brain.Privileges, err error)
func (*Client) GetPrivilegesForGroup ¶
func (*Client) GetPrivilegesForVirtualMachine ¶
func (c *Client) GetPrivilegesForVirtualMachine(vm lib.VirtualMachineName) (privs brain.Privileges, err error)
func (*Client) GetRecentVMs ¶
func (c *Client) GetRecentVMs() ([]*brain.VirtualMachine, error)
func (*Client) GetSPPToken ¶
func (*Client) GetSessionFactors ¶
func (*Client) GetSessionToken ¶
func (*Client) GetSessionUser ¶
func (*Client) GetStoppedEligibleVMs ¶
func (c *Client) GetStoppedEligibleVMs() ([]*brain.VirtualMachine, error)
func (*Client) GetStoragePool ¶
func (c *Client) GetStoragePool(idOrLabel string) (*brain.StoragePool, error)
func (*Client) GetStoragePools ¶
func (c *Client) GetStoragePools() ([]*brain.StoragePool, error)
func (*Client) GetVirtualMachine ¶
func (c *Client) GetVirtualMachine(name *lib.VirtualMachineName) (vm *brain.VirtualMachine, err error)
func (*Client) MigrateVirtualMachine ¶
func (c *Client) MigrateVirtualMachine(vmName lib.VirtualMachineName, newHead string) error
func (*Client) MoveVirtualMachine ¶
func (c *Client) MoveVirtualMachine(oldName *lib.VirtualMachineName, newName *lib.VirtualMachineName) error
func (*Client) NewRequestNoAuth ¶
func (*Client) ParseAccountName ¶
func (*Client) ParseGroupName ¶
func (*Client) ParseVirtualMachineName ¶
func (c *Client) ParseVirtualMachineName(name string, defaults ...*lib.VirtualMachineName) (*lib.VirtualMachineName, error)
func (*Client) ReadDefinitions ¶
func (c *Client) ReadDefinitions() (*lib.Definitions, error)
func (*Client) RegisterNewAccount ¶
func (*Client) ReimageVirtualMachine ¶
func (c *Client) ReimageVirtualMachine(name *lib.VirtualMachineName, image *brain.ImageInstall) error
func (*Client) RejectVM ¶
func (c *Client) RejectVM(name lib.VirtualMachineName, reason string) error
func (*Client) RequestAndRead ¶
func (*Client) RequestAndUnmarshal ¶
func (*Client) ResetVirtualMachine ¶
func (c *Client) ResetVirtualMachine(name *lib.VirtualMachineName) error
func (*Client) ResizeDisc ¶
func (*Client) RestartVirtualMachine ¶
func (c *Client) RestartVirtualMachine(name *lib.VirtualMachineName) error
func (*Client) RestoreBackup ¶
func (*Client) SetDebugLevel ¶
func (*Client) SetDiscIopsLimit ¶
func (*Client) SetVirtualMachineCDROM ¶
func (c *Client) SetVirtualMachineCDROM(name *lib.VirtualMachineName, url string) error
func (*Client) SetVirtualMachineCores ¶
func (c *Client) SetVirtualMachineCores(name *lib.VirtualMachineName, cores int) error
func (*Client) SetVirtualMachineHardwareProfile ¶
func (*Client) SetVirtualMachineHardwareProfileLock ¶
func (c *Client) SetVirtualMachineHardwareProfileLock(name *lib.VirtualMachineName, locked bool) error
func (*Client) SetVirtualMachineMemory ¶
func (c *Client) SetVirtualMachineMemory(name *lib.VirtualMachineName, memory int) error
func (*Client) ShutdownVirtualMachine ¶
func (c *Client) ShutdownVirtualMachine(name *lib.VirtualMachineName, stayoff bool) error
func (*Client) StartVirtualMachine ¶
func (c *Client) StartVirtualMachine(name *lib.VirtualMachineName) error
func (*Client) StopVirtualMachine ¶
func (c *Client) StopVirtualMachine(name *lib.VirtualMachineName) error
func (*Client) UndeleteVirtualMachine ¶
func (c *Client) UndeleteVirtualMachine(name *lib.VirtualMachineName) error
func (*Client) UpdateHead ¶
func (c *Client) UpdateHead(idOrLabel string, options lib.UpdateHead) error
func (*Client) UpdateStoragePool ¶
func (c *Client) UpdateStoragePool(idOrLabel string, options lib.UpdateStoragePool) error
func (*Client) UpdateTail ¶
func (c *Client) UpdateTail(idOrLabel string, options lib.UpdateTail) error
func (*Client) UpdateVMMigration ¶
type Config ¶
func (*Config) EndpointName ¶
func (*Config) GetDebugLevel ¶
func (*Config) GetIgnoreErr ¶
func (*Config) GetSessionValidity ¶ added in v2.5.1
func (*Config) GetVirtualMachine ¶
func (c *Config) GetVirtualMachine() *lib.VirtualMachineName
func (*Config) SetPersistent ¶
Click to show internal directories.
Click to hide internal directories.