Documentation ¶
Index ¶
- Constants
- func IsPrivateSubnet(ipAddress net.IP) bool
- func NewConcreteFactory(softlayerClient client.Client, uuidGen boshuuid.Generator, cfg config.Config, ...) concreteFactory
- type Action
- type AttachDisk
- type ConcreteFactoryOptions
- type ConfigureNetworks
- type CreateDisk
- type CreateStemcellAction
- type CreateVM
- type DeleteDisk
- type DeleteSnapshot
- type DeleteStemcellAction
- type DeleteVMAction
- type DetachDisk
- type DiskCID
- type DiskCloudProperties
- type DiskMetadata
- type Environment
- type Factory
- type GetDisks
- type HasDisk
- type HasVM
- type Info
- type InfoResult
- type Network
- type NetworkCloudProperties
- type Networks
- type Ping
- type RebootVM
- type SetDiskMetadata
- type SetVMMetadata
- type SnapshotCID
- type SnapshotDisk
- type SnapshotMetadata
- type StemcellCID
- type StemcellCloudProperties
- type VMCID
- type VMCloudProperties
- type VMMetadata
Constants ¶
View Source
const (
NetworkTypeManual string = "manual"
)
Variables ¶
This section is empty.
Functions ¶
func IsPrivateSubnet ¶
Types ¶
type AttachDisk ¶
type AttachDisk struct {
// contains filtered or unexported fields
}
func NewAttachDisk ¶
func NewAttachDisk( diskService disk.Service, vmService instance.Service, registryClient registry.Client, ) AttachDisk
type ConcreteFactoryOptions ¶
type ConcreteFactoryOptions struct { Agent registry.AgentOptions Registry registry.ClientOptions }
func (ConcreteFactoryOptions) Validate ¶
func (o ConcreteFactoryOptions) Validate() error
type ConfigureNetworks ¶
type ConfigureNetworks struct {
// contains filtered or unexported fields
}
func NewConfigureNetworks ¶
func NewConfigureNetworks( vmService instance.Service, registryClient registry.Client, ) ConfigureNetworks
type CreateDisk ¶
type CreateDisk struct {
// contains filtered or unexported fields
}
func NewCreateDisk ¶
func NewCreateDisk( diskService disk.Service, vmService instance.Service, ) CreateDisk
func (CreateDisk) Run ¶
func (cd CreateDisk) Run(size int, cloudProps DiskCloudProperties, vmCID VMCID) (string, error)
type CreateStemcellAction ¶
type CreateStemcellAction struct {
// contains filtered or unexported fields
}
func NewCreateStemcell ¶
func NewCreateStemcell( stemcellFinder stemcell.Service, ) (action CreateStemcellAction)
func (CreateStemcellAction) Run ¶
func (a CreateStemcellAction) Run(imagePath string, cloudProps StemcellCloudProperties) (string, error)
type CreateVM ¶
type CreateVM struct {
// contains filtered or unexported fields
}
func NewCreateVM ¶
func NewCreateVM( stemcellService stemcell.Service, virtualGuestService instance.Service, registryClient registry.Client, registryOptions registry.ClientOptions, agentOptions registry.AgentOptions, softlayerOptions boslconfig.Config, localDNSConfigurationFile string, ) (action CreateVM)
func (CreateVM) Run ¶
func (cv CreateVM) Run(agentID string, stemcellCID StemcellCID, cloudProps VMCloudProperties, networks Networks, diskIDs []DiskCID, env Environment) (string, error)
type DeleteDisk ¶
type DeleteDisk struct {
// contains filtered or unexported fields
}
func NewDeleteDisk ¶
func NewDeleteDisk( diskService disk.Service, ) DeleteDisk
func (DeleteDisk) Run ¶
func (dd DeleteDisk) Run(diskCID DiskCID) (interface{}, error)
type DeleteSnapshot ¶
type DeleteSnapshot struct {
// contains filtered or unexported fields
}
func NewDeleteSnapshot ¶
func NewDeleteSnapshot( snapshotService snapshot.Service, ) DeleteSnapshot
func (DeleteSnapshot) Run ¶
func (ds DeleteSnapshot) Run(snapshotCID SnapshotCID) (interface{}, error)
type DeleteStemcellAction ¶
type DeleteStemcellAction struct {
// contains filtered or unexported fields
}
func NewDeleteStemcell ¶
func NewDeleteStemcell( stemcellService stemcell_service.Service, ) (action DeleteStemcellAction)
func (DeleteStemcellAction) Run ¶
func (a DeleteStemcellAction) Run(stemcellCID StemcellCID) (interface{}, error)
type DeleteVMAction ¶
type DeleteVMAction struct {
// contains filtered or unexported fields
}
func NewDeleteVM ¶
func NewDeleteVM( vmDeleterProvider vgs.Service, registryClient registry.Client, softlayerOptions boslconfig.Config, ) (action DeleteVMAction)
func (DeleteVMAction) Run ¶
func (dv DeleteVMAction) Run(vmCID VMCID) (interface{}, error)
type DetachDisk ¶
type DetachDisk struct {
// contains filtered or unexported fields
}
func NewDetachDisk ¶
func NewDetachDisk( vmService instance.Service, registryClient registry.Client, ) DetachDisk
type DiskCloudProperties ¶
type DiskMetadata ¶
type DiskMetadata map[string]interface{}
type Environment ¶
type Environment map[string]interface{}
type GetDisks ¶
type GetDisks struct {
// contains filtered or unexported fields
}
func NewGetDisks ¶
func NewGetDisks( vmService instance.Service, ) GetDisks
type HasDisk ¶
type HasDisk struct {
// contains filtered or unexported fields
}
func NewHasDisk ¶
func NewHasDisk( diskService disk.Service, ) HasDisk
type InfoResult ¶
type InfoResult struct {
StemcellFormats []string `json:"stemcell_formats"`
}
type Network ¶
type Network struct { Type string `json:"type,omitempty"` IP string `json:"ip,omitempty"` Gateway string `json:"gateway,omitempty"` Netmask string `json:"netmask,omitempty"` DNS []string `json:"dns,omitempty"` DHCP bool `json:"use_dhcp,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) AsInstanceServiceNetworks ¶
func (ns Networks) AsInstanceServiceNetworks(publicNetworkVlan *datatypes.Network_Vlan) instance.Networks
func (Networks) HasManualNetwork ¶
type RebootVM ¶
type RebootVM struct {
// contains filtered or unexported fields
}
func NewRebootVM ¶
func NewRebootVM( vmService instance.Service, ) RebootVM
type SetDiskMetadata ¶
type SetDiskMetadata struct {
// contains filtered or unexported fields
}
func NewSetDiskMetadata ¶
func NewSetDiskMetadata( diskService disk.Service, ) SetDiskMetadata
func (SetDiskMetadata) Run ¶
func (sdm SetDiskMetadata) Run(DiskCID DiskCID, diskMetadata DiskMetadata) (interface{}, error)
type SetVMMetadata ¶
type SetVMMetadata struct {
// contains filtered or unexported fields
}
func NewSetVMMetadata ¶
func NewSetVMMetadata( vmService instance.Service, ) SetVMMetadata
func (SetVMMetadata) Run ¶
func (svm SetVMMetadata) Run(vmCID VMCID, vmMetadata VMMetadata) (interface{}, error)
type SnapshotCID ¶
type SnapshotCID int
func (SnapshotCID) Int ¶
func (snapshotCID SnapshotCID) Int() int
func (SnapshotCID) MarshalJSON ¶
func (snapshotCID SnapshotCID) MarshalJSON() ([]byte, error)
func (SnapshotCID) String ¶
func (snapshotCID SnapshotCID) String() string
func (*SnapshotCID) UnmarshalJSON ¶
func (snapshotCID *SnapshotCID) UnmarshalJSON(data []byte) error
type SnapshotDisk ¶
type SnapshotDisk struct {
// contains filtered or unexported fields
}
func NewSnapshotDisk ¶
func NewSnapshotDisk( snapshotService snapshot.Service, diskService disk.Service, ) SnapshotDisk
func (SnapshotDisk) Run ¶
func (sd SnapshotDisk) Run(diskCID DiskCID, metadata SnapshotMetadata) (string, error)
type SnapshotMetadata ¶
type StemcellCID ¶
type StemcellCID int
func (StemcellCID) Int ¶
func (stemcellCID StemcellCID) Int() int
func (StemcellCID) MarshalJSON ¶
func (stemcellCID StemcellCID) MarshalJSON() ([]byte, error)
func (StemcellCID) String ¶
func (stemcellCID StemcellCID) String() string
func (*StemcellCID) UnmarshalJSON ¶
func (stemcellCID *StemcellCID) UnmarshalJSON(data []byte) error
type StemcellCloudProperties ¶
type StemcellCloudProperties struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Infrastructure string `json:"infrastructure,omitempty"` SourceURL string `json:"source_url,omitempty"` Id int `json:"virtual-disk-image-id"` Uuid string `json:"virtual-disk-image-uuid"` DatacenterName string `json:"datacenter-name"` OsCode string `json:"os-code"` }
type VMCloudProperties ¶
type VMCloudProperties struct { HostnamePrefix string `json:"hostname_prefix,omitempty"` Hostname string `json:"hostname,omitempty"` Domain string `json:"domain,omitempty"` FlavorKeyName string `json:"flavor_key_name,omitempty"` Cpu int `json:"cpu,omitempty"` Memory int `json:"memory,omitempty"` Datacenter string `json:"datacenter"` EphemeralDiskSize int `json:"ephemeral_disk_size,omitempty"` SshKey int `json:"ssh_key,omitempty"` HourlyBillingFlag bool `json:"hourly_billing_flag,omitempty"` LocalDiskFlag bool `json:"local_disk_flag,omitempty"` DedicatedAccountHostOnlyFlag bool `json:"dedicated_account_host_only_flag,omitempty"` DedicatedHostId int `json:"dedicated_host_id,omitempty"` DeployedByBoshCLI bool `json:"deployed_by_boshcli,omitempty"` MaxNetworkSpeed int `json:"max_network_speed,omitempty"` }
func (*VMCloudProperties) AsInstanceProperties ¶
func (vmProps *VMCloudProperties) AsInstanceProperties() *VMCloudProperties
func (*VMCloudProperties) Validate ¶
func (vmProps *VMCloudProperties) Validate() error
type VMMetadata ¶
type VMMetadata map[string]interface{}
Source Files ¶
- action_interface.go
- attach_disk.go
- cids.go
- cloud_properties.go
- concrete_factory.go
- concrete_factory_options.go
- configure_networks.go
- create_disk.go
- create_stemcell.go
- create_vm.go
- delete_disk.go
- delete_snapshot.go
- delete_stemcell.go
- delete_vm.go
- detach_disk.go
- factory_interface.go
- get_disks.go
- has_disk.go
- has_vm.go
- info.go
- networks.go
- ping.go
- reboot_vm.go
- set_disk_metadata.go
- set_vm_metadata.go
- snapshot_disk.go
Click to show internal directories.
Click to hide internal directories.