Documentation ¶
Index ¶
- type Client
- func (c *Client) AddIP(name *lib.VirtualMachineName, spec *lib.IPCreateRequest) (lib.IPs, error)
- func (c *Client) AddUserAuthorizedKey(name, key string) error
- func (c *Client) AllowInsecureRequests()
- 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) CreateAccount(acc *lib.Account) (*lib.Account, error)
- func (c *Client) CreateCreditCard(cc *lib.CreditCard) (string, error)
- func (c *Client) CreateDisc(name *lib.VirtualMachineName, disc lib.Disc) error
- func (c *Client) CreateGroup(name *lib.GroupName) error
- func (c *Client) CreateVirtualMachine(group *lib.GroupName, vm lib.VirtualMachineSpec) (*lib.VirtualMachine, 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) DeleteVirtualMachine(name *lib.VirtualMachineName, purge bool) error
- func (c *Client) GetAccount(name string) (account *lib.Account, err error)
- func (c *Client) GetAccounts() (accounts []*lib.Account, err error)
- func (c *Client) GetDefaultAccount() (account *lib.Account, err error)
- func (c *Client) GetDisc(name *lib.VirtualMachineName, discId string) (disc *lib.Disc, err error)
- func (c *Client) GetEndpoint() string
- func (c *Client) GetGroup(name *lib.GroupName) (*lib.Group, error)
- func (c *Client) GetSessionFactors() []string
- func (c *Client) GetSessionToken() string
- func (c *Client) GetSessionUser() string
- func (c *Client) GetUser(name string) (*lib.User, error)
- func (c *Client) GetVirtualMachine(name *lib.VirtualMachineName) (vm *lib.VirtualMachine, err 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) RegisterNewAccount(acc *lib.Account) (*lib.Account, error)
- func (c *Client) ReimageVirtualMachine(name *lib.VirtualMachineName, image *lib.ImageInstall) 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) SetDebugLevel(level int)
- 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
- type Config
- 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) 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) Silent() bool
- func (c *Config) Unset(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddIP ¶ added in v0.7.0
func (c *Client) AddIP(name *lib.VirtualMachineName, spec *lib.IPCreateRequest) (lib.IPs, error)
func (*Client) AddUserAuthorizedKey ¶
func (*Client) AllowInsecureRequests ¶
func (c *Client) AllowInsecureRequests()
func (*Client) AuthWithCredentials ¶
func (c *Client) AuthWithCredentials(credents auth3.Credentials) error
func (*Client) AuthWithToken ¶
func (*Client) BuildRequest ¶
func (*Client) BuildRequestNoAuth ¶
func (*Client) CreateAccount ¶ added in v0.7.0
func (*Client) CreateCreditCard ¶ added in v0.7.0
func (c *Client) CreateCreditCard(cc *lib.CreditCard) (string, error)
func (*Client) CreateDisc ¶
func (*Client) CreateVirtualMachine ¶
func (c *Client) CreateVirtualMachine(group *lib.GroupName, vm lib.VirtualMachineSpec) (*lib.VirtualMachine, error)
func (*Client) DeleteDisc ¶
func (c *Client) DeleteDisc(name *lib.VirtualMachineName, disc string) error
func (*Client) DeleteUserAuthorizedKey ¶
func (*Client) DeleteVirtualMachine ¶
func (c *Client) DeleteVirtualMachine(name *lib.VirtualMachineName, purge bool) error
func (*Client) GetAccount ¶
func (*Client) GetDefaultAccount ¶ added in v0.7.0
func (*Client) GetEndpoint ¶
func (*Client) GetSessionFactors ¶
func (*Client) GetSessionToken ¶
func (*Client) GetSessionUser ¶
func (*Client) GetVirtualMachine ¶
func (c *Client) GetVirtualMachine(name *lib.VirtualMachineName) (vm *lib.VirtualMachine, err 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 ¶ added in v0.7.0
func (*Client) ReimageVirtualMachine ¶
func (c *Client) ReimageVirtualMachine(name *lib.VirtualMachineName, image *lib.ImageInstall) 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) SetDebugLevel ¶
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
type Config ¶
func (*Config) EndpointName ¶
func (*Config) GetDebugLevel ¶
func (*Config) GetIgnoreErr ¶
func (*Config) GetVirtualMachine ¶
func (c *Config) GetVirtualMachine() *lib.VirtualMachineName
func (*Config) SetPersistent ¶
Click to show internal directories.
Click to hide internal directories.