Documentation ¶
Index ¶
- func SoftlayerPrivateRoutes(gateway string) registry.Routes
- type DavConfig
- type LinkNamer
- type Metadata
- type Mount
- type Network
- type NetworkCloudProperties
- type Networks
- type Service
- type SoftlayerVirtualGuestService
- func (vg SoftlayerVirtualGuestService) AttachDisk(id int, diskID int) ([]byte, error)
- func (vg SoftlayerVirtualGuestService) AttachEphemeralDisk(id int, diskSize int) error
- func (vg SoftlayerVirtualGuestService) AttachedDisks(id int) ([]string, error)
- func (vg SoftlayerVirtualGuestService) CleanUp(id int) error
- func (vg SoftlayerVirtualGuestService) ConfigureNetworks(id int, networks Networks) (Networks, error)
- func (vg SoftlayerVirtualGuestService) Create(virtualGuest *datatypes.Virtual_Guest, enableVps bool, stemcellID int, ...) (int, error)
- func (vg SoftlayerVirtualGuestService) CreateSshKey(label string, key string, fingerPrint string) (int, error)
- func (vg SoftlayerVirtualGuestService) Delete(id int, enableVps bool) error
- func (vg SoftlayerVirtualGuestService) DeleteSshKey(id int) error
- func (vg SoftlayerVirtualGuestService) DetachDisk(id int, diskID int) error
- func (vg SoftlayerVirtualGuestService) Edit(id int, instance *datatypes.Virtual_Guest) error
- func (vg SoftlayerVirtualGuestService) Find(id int) (*datatypes.Virtual_Guest, error)
- func (vg SoftlayerVirtualGuestService) FindByPrimaryBackendIp(ip string) (*datatypes.Virtual_Guest, error)
- func (vg SoftlayerVirtualGuestService) FindByPrimaryIp(ip string) (*datatypes.Virtual_Guest, error)
- func (vg SoftlayerVirtualGuestService) GetSubnet(subnetID int, mask string) (*datatypes.Network_Subnet, error)
- func (vg SoftlayerVirtualGuestService) GetVlan(vlanID int, mask string) (*datatypes.Network_Vlan, error)
- func (vg SoftlayerVirtualGuestService) Reboot(id int) error
- func (vg SoftlayerVirtualGuestService) ReloadOS(id int, stemcellID int, sshKeys []int, hostname string, domain string, ...) error
- func (vg SoftlayerVirtualGuestService) SetMetadata(id int, vmMetadata Metadata) error
- func (vg SoftlayerVirtualGuestService) UpdateInstanceUserData(id int, userData *string) error
- func (vg SoftlayerVirtualGuestService) UpgradeInstance(id int, cpu int, memory int, network int, privateCPU bool, dedicatedHost bool) error
- type Softlayer_Ubuntu_Net
- func (u *Softlayer_Ubuntu_Net) ComponentByNetworkName(components datatypes.Virtual_Guest, networks Networks) (map[string]datatypes.Virtual_Guest_Network_Component, error)
- func (u *Softlayer_Ubuntu_Net) FinalizedNetworkDefinitions(networkComponents datatypes.Virtual_Guest, networks Networks, ...) (Networks, error)
- func (u *Softlayer_Ubuntu_Net) NormalizeDynamics(networkComponents datatypes.Virtual_Guest, networks Networks) (Networks, error)
- func (u *Softlayer_Ubuntu_Net) NormalizeNetworkDefinitions(networks Networks, ...) (Networks, error)
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SoftlayerPrivateRoutes ¶
Types ¶
type LinkNamer ¶
func NewIndexedNamer ¶
type Network ¶
type Network struct { Type string `json:"type"` IP string `json:"ip,omitempty"` Netmask string `json:"netmask,omitempty"` Gateway string `json:"gateway,omitempty"` DNS []string `json:"dns,omitempty"` Default []string `json:"default,omitempty"` MAC string `json:"mac,omitempty"` Alias string `json:"alias,omitempty"` Routes registry.Routes `json:"routes,omitempty"` CloudProperties NetworkCloudProperties `json:"cloud_properties,omitempty"` }
type NetworkCloudProperties ¶
type Networks ¶
func (Networks) AsRegistryNetworks ¶
func (n Networks) AsRegistryNetworks() registry.NetworksSettings
type Service ¶
type Service interface { AttachDisk(id int, diskID int) ([]byte, error) AttachedDisks(id int) ([]string, error) AttachEphemeralDisk(id int, diskSize int) error Create(virtualGuest *datatypes.Virtual_Guest, enableVps bool, stemcellID int, sshKeys []int, userData *registry.SoftlayerUserData) (int, error) UpgradeInstance(id int, cpu int, memory int, network int, privateCPU bool, dedicatedHost bool) error ConfigureNetworks(id int, networks Networks) (Networks, error) CleanUp(id int) error CreateSshKey(label string, key string, fingerPrint string) (int, error) Delete(id int, enableVps bool) error DetachDisk(id int, diskID int) error DeleteSshKey(id int) error Edit(id int, instance *datatypes.Virtual_Guest) error Find(id int) (*datatypes.Virtual_Guest, error) FindByPrimaryBackendIp(ip string) (*datatypes.Virtual_Guest, error) FindByPrimaryIp(ip string) (*datatypes.Virtual_Guest, error) GetVlan(id int, mask string) (*datatypes.Network_Vlan, error) GetSubnet(id int, mask string) (*datatypes.Network_Subnet, error) Reboot(id int) error ReloadOS(id int, stemcellID int, sshKeyIds []int, hostname string, domain string, userData *registry.SoftlayerUserData) error SetMetadata(id int, vmMetadata Metadata) error UpdateInstanceUserData(id int, userData *string) error }
type SoftlayerVirtualGuestService ¶
type SoftlayerVirtualGuestService struct {
// contains filtered or unexported fields
}
func (SoftlayerVirtualGuestService) AttachDisk ¶
func (vg SoftlayerVirtualGuestService) AttachDisk(id int, diskID int) ([]byte, error)
func (SoftlayerVirtualGuestService) AttachEphemeralDisk ¶
func (vg SoftlayerVirtualGuestService) AttachEphemeralDisk(id int, diskSize int) error
func (SoftlayerVirtualGuestService) AttachedDisks ¶
func (vg SoftlayerVirtualGuestService) AttachedDisks(id int) ([]string, error)
func (SoftlayerVirtualGuestService) CleanUp ¶
func (vg SoftlayerVirtualGuestService) CleanUp(id int) error
func (SoftlayerVirtualGuestService) ConfigureNetworks ¶
func (vg SoftlayerVirtualGuestService) ConfigureNetworks(id int, networks Networks) (Networks, error)
func (SoftlayerVirtualGuestService) Create ¶
func (vg SoftlayerVirtualGuestService) Create(virtualGuest *datatypes.Virtual_Guest, enableVps bool, stemcellID int, sshKeys []int, userData *registry.SoftlayerUserData) (int, error)
func (SoftlayerVirtualGuestService) CreateSshKey ¶
func (SoftlayerVirtualGuestService) Delete ¶
func (vg SoftlayerVirtualGuestService) Delete(id int, enableVps bool) error
func (SoftlayerVirtualGuestService) DeleteSshKey ¶
func (vg SoftlayerVirtualGuestService) DeleteSshKey(id int) error
func (SoftlayerVirtualGuestService) DetachDisk ¶
func (vg SoftlayerVirtualGuestService) DetachDisk(id int, diskID int) error
func (SoftlayerVirtualGuestService) Edit ¶
func (vg SoftlayerVirtualGuestService) Edit(id int, instance *datatypes.Virtual_Guest) error
func (SoftlayerVirtualGuestService) Find ¶
func (vg SoftlayerVirtualGuestService) Find(id int) (*datatypes.Virtual_Guest, error)
func (SoftlayerVirtualGuestService) FindByPrimaryBackendIp ¶
func (vg SoftlayerVirtualGuestService) FindByPrimaryBackendIp(ip string) (*datatypes.Virtual_Guest, error)
func (SoftlayerVirtualGuestService) FindByPrimaryIp ¶
func (vg SoftlayerVirtualGuestService) FindByPrimaryIp(ip string) (*datatypes.Virtual_Guest, error)
func (SoftlayerVirtualGuestService) GetSubnet ¶
func (vg SoftlayerVirtualGuestService) GetSubnet(subnetID int, mask string) (*datatypes.Network_Subnet, error)
func (SoftlayerVirtualGuestService) GetVlan ¶
func (vg SoftlayerVirtualGuestService) GetVlan(vlanID int, mask string) (*datatypes.Network_Vlan, error)
func (SoftlayerVirtualGuestService) Reboot ¶
func (vg SoftlayerVirtualGuestService) Reboot(id int) error
func (SoftlayerVirtualGuestService) ReloadOS ¶
func (vg SoftlayerVirtualGuestService) ReloadOS(id int, stemcellID int, sshKeys []int, hostname string, domain string, userData *registry.SoftlayerUserData) error
func (SoftlayerVirtualGuestService) SetMetadata ¶
func (vg SoftlayerVirtualGuestService) SetMetadata(id int, vmMetadata Metadata) error
func (SoftlayerVirtualGuestService) UpdateInstanceUserData ¶
func (vg SoftlayerVirtualGuestService) UpdateInstanceUserData(id int, userData *string) error
func (SoftlayerVirtualGuestService) UpgradeInstance ¶
type Softlayer_Ubuntu_Net ¶
type Softlayer_Ubuntu_Net struct {
LinkNamer LinkNamer
}
func (*Softlayer_Ubuntu_Net) ComponentByNetworkName ¶
func (u *Softlayer_Ubuntu_Net) ComponentByNetworkName(components datatypes.Virtual_Guest, networks Networks) (map[string]datatypes.Virtual_Guest_Network_Component, error)
func (*Softlayer_Ubuntu_Net) FinalizedNetworkDefinitions ¶
func (u *Softlayer_Ubuntu_Net) FinalizedNetworkDefinitions(networkComponents datatypes.Virtual_Guest, networks Networks, componentByNetwork map[string]datatypes.Virtual_Guest_Network_Component) (Networks, error)
func (*Softlayer_Ubuntu_Net) NormalizeDynamics ¶
func (u *Softlayer_Ubuntu_Net) NormalizeDynamics(networkComponents datatypes.Virtual_Guest, networks Networks) (Networks, error)
func (*Softlayer_Ubuntu_Net) NormalizeNetworkDefinitions ¶
func (u *Softlayer_Ubuntu_Net) NormalizeNetworkDefinitions(networks Networks, componentByNetwork map[string]datatypes.Virtual_Guest_Network_Component) (Networks, error)
Source Files ¶
- instance_service.go
- network.go
- networks.go
- softlayer_ubuntu_net_manager.go
- softlayer_virtual_guest_service.go
- softlayer_virtual_guest_service_create.go
- softlayer_virtual_guest_service_delete.go
- softlayer_virtual_guest_service_disk.go
- softlayer_virtual_guest_service_find.go
- softlayer_virtual_guest_service_metadata.go
- softlayer_virtual_guest_service_networks.go
- softlayer_virtual_guest_service_reboot.go
- softlayer_virtual_guest_service_reload.go
- softlayer_virtual_guest_service_sshKey.go
- softlayer_virtual_guest_service_upgrade.go
Click to show internal directories.
Click to hide internal directories.