Documentation
¶
Index ¶
- Constants
- func SolusVMFromJSON(jsonData []byte) (compute.Provider, error)
- type API
- func (this *API) VmAddAddress(vmIdentification int) error
- func (this *API) VmConsole(vmIdentification int) (*APIVmConsoleResponse, error)
- func (this *API) VmCreate(virtType string, nodeGroup string, hostname string, imageIdentification string, ...) (int, string, error)
- func (this *API) VmDelete(vmIdentification int) error
- func (this *API) VmDiskSwap(vmIdentification int) error
- func (this *API) VmHostname(vmIdentification int, hostname string) error
- func (this *API) VmInfo(vmIdentification int) (*APIVmInfoResponse, error)
- func (this *API) VmReboot(vmIdentification int) error
- func (this *API) VmReimage(vmIdentification int, imageIdentification string) error
- func (this *API) VmRemoveAddress(vmIdentification int, ip string) error
- func (this *API) VmResizeCpu(vmIdentification int, cpu int) error
- func (this *API) VmResizeDisk(vmIdentification int, hdd int) error
- func (this *API) VmResizeMemory(vmIdentification int, memory int) error
- func (this *API) VmStart(vmIdentification int) error
- func (this *API) VmStop(vmIdentification int) error
- func (this *API) VmTunTap(vmIdentification int, enable bool) error
- func (this *API) VmVnc(vmIdentification int) (*APIVmVncResponse, error)
- type APIGenericResponse
- type APIVmConsoleResponse
- type APIVmCreateResponse
- type APIVmInfoResponse
- type APIVmVncResponse
- type SolusJSONConfig
- type SolusVM
- func (solus *SolusVM) AddAddressToInstance(instanceID string, address *compute.Address) error
- func (solus *SolusVM) ComputeService() compute.Service
- func (solus *SolusVM) CreateInstance(instance *compute.Instance) (*compute.Instance, error)
- func (solus *SolusVM) DeleteInstance(instanceID string) error
- func (solus *SolusVM) GetInstance(instanceID string) (*compute.Instance, error)
- func (solus *SolusVM) GetVNC(instanceID string) (string, error)
- func (solus *SolusVM) ListInstanceAddresses(instanceID string) ([]*compute.Address, error)
- func (solus *SolusVM) ListInstances() ([]*compute.Instance, error)
- func (solus *SolusVM) RebootInstance(instanceID string) error
- func (solus *SolusVM) ReimageInstance(instanceID string, image *compute.Image) error
- func (solus *SolusVM) RemoveAddressFromInstance(instanceID string, addressID string) error
- func (solus *SolusVM) RenameInstance(instanceID string, name string) error
- func (solus *SolusVM) ResizeInstance(instanceID string, flavor *compute.Flavor) error
- func (solus *SolusVM) SetAddressHostname(addressID string, hostname string) error
- func (solus *SolusVM) StartInstance(instanceID string) error
- func (solus *SolusVM) StopInstance(instanceID string) error
Constants ¶
View Source
const DEFAULT_CORES = 1
View Source
const DEFAULT_DISK = 10
View Source
const DEFAULT_NAME = "cloug"
View Source
const DEFAULT_RAM = 512
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { Url string ApiId string ApiKey string Insecure bool // InsecureSkipVerify true in tls.Config }
func (*API) VmAddAddress ¶
func (*API) VmConsole ¶
func (this *API) VmConsole(vmIdentification int) (*APIVmConsoleResponse, error)
func (*API) VmDiskSwap ¶
func (*API) VmRemoveAddress ¶
func (*API) VmResizeMemory ¶
type APIGenericResponse ¶
type APIVmConsoleResponse ¶
type APIVmCreateResponse ¶
type APIVmInfoResponse ¶
type APIVmVncResponse ¶
type SolusJSONConfig ¶
type SolusVM ¶
func (*SolusVM) AddAddressToInstance ¶
func (*SolusVM) ComputeService ¶
func (*SolusVM) CreateInstance ¶
func (*SolusVM) DeleteInstance ¶
func (*SolusVM) GetInstance ¶
func (*SolusVM) ListInstanceAddresses ¶
func (*SolusVM) RebootInstance ¶
func (*SolusVM) ReimageInstance ¶
func (*SolusVM) RemoveAddressFromInstance ¶
func (*SolusVM) RenameInstance ¶
func (*SolusVM) ResizeInstance ¶
func (*SolusVM) SetAddressHostname ¶
func (*SolusVM) StartInstance ¶
func (*SolusVM) StopInstance ¶
Click to show internal directories.
Click to hide internal directories.