Documentation ¶
Index ¶
- type Action
- type AttachDisk
- type ConcreteFactory
- type ConcreteFactoryOptions
- type ConfigureNetworks
- type CreateDisk
- type CreateStemcell
- type CreateVM
- type DeleteDisk
- type DeleteSnapshot
- type DeleteStemcell
- type DeleteVM
- type DetachDisk
- type DiskCID
- type DiskCloudProperties
- type Environment
- type Factory
- type GetDisks
- type HasVM
- type Network
- type NetworkCloudProperties
- type NetworkTags
- type Networks
- type Ping
- type RebootVM
- type SetVMMetadata
- type SnapshotCID
- type SnapshotDisk
- type SnapshotMetadata
- type StemcellCID
- type StemcellCloudProperties
- type VMCID
- type VMCloudProperties
- type VMMetadata
- type VMServiceScopes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ConcreteFactory ¶
type ConcreteFactory struct {
// contains filtered or unexported fields
}
func NewConcreteFactory ¶
func NewConcreteFactory( googleClient client.GoogleClient, uuidGen boshuuid.Generator, options ConcreteFactoryOptions, logger boshlog.Logger, ) ConcreteFactory
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, diskTypeService disktype.Service, vmService instance.Service, defaultZone string, ) CreateDisk
func (CreateDisk) Run ¶
func (cd CreateDisk) Run(size int, cloudProps DiskCloudProperties, vmCID VMCID) (DiskCID, error)
type CreateStemcell ¶
type CreateStemcell struct {
// contains filtered or unexported fields
}
func NewCreateStemcell ¶
func NewCreateStemcell( imageService image.Service, ) CreateStemcell
func (CreateStemcell) Run ¶
func (cs CreateStemcell) Run(stemcellPath string, cloudProps StemcellCloudProperties) (StemcellCID, error)
type CreateVM ¶
type CreateVM struct {
// contains filtered or unexported fields
}
func NewCreateVM ¶
func NewCreateVM( vmService instance.Service, diskService disk.Service, diskTypeService disktype.Service, imageService image.Service, machineTypeService machinetype.Service, registryClient registry.Client, registryOptions registry.ClientOptions, agentOptions registry.AgentOptions, defaultRootDiskSizeGb int, defaultRootDiskType string, defaultZone string, ) CreateVM
func (CreateVM) Run ¶
func (cv CreateVM) Run(agentID string, stemcellCID StemcellCID, cloudProps VMCloudProperties, networks Networks, disks []DiskCID, env Environment) (VMCID, 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 DeleteStemcell ¶
type DeleteStemcell struct {
// contains filtered or unexported fields
}
func NewDeleteStemcell ¶
func NewDeleteStemcell( imageService image.Service, ) DeleteStemcell
func (DeleteStemcell) Run ¶
func (ds DeleteStemcell) Run(stemcellCID StemcellCID) (interface{}, error)
type DeleteVM ¶
type DeleteVM struct {
// contains filtered or unexported fields
}
func NewDeleteVM ¶
func NewDeleteVM( vmService instance.Service, registryClient registry.Client, ) DeleteVM
type DetachDisk ¶
type DetachDisk struct {
// contains filtered or unexported fields
}
func NewDetachDisk ¶
func NewDetachDisk( vmService instance.Service, registryClient registry.Client, ) DetachDisk
type DiskCloudProperties ¶
type DiskCloudProperties struct {
DiskType string `json:"type,omitempty"`
}
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 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"` Default []string `json:"default,omitempty"` CloudProperties NetworkCloudProperties `json:"cloud_properties,omitempty"` }
type NetworkCloudProperties ¶
type NetworkCloudProperties struct { NetworkName string `json:"network_name,omitempty"` SubnetworkName string `json:"subnetwork_name,omitempty"` Tags NetworkTags `json:"tags,omitempty"` EphemeralExternalIP bool `json:"ephemeral_external_ip,omitempty"` IPForwarding bool `json:"ip_forwarding,omitempty"` TargetPool string `json:"target_pool,omitempty"` InstanceGroup string `json:"instance_group,omitempty"` }
type NetworkTags ¶
type NetworkTags []string
type Networks ¶
func (Networks) AsInstanceServiceNetworks ¶
func (ns Networks) AsInstanceServiceNetworks() instance.Networks
func (Networks) AsRegistryNetworks ¶
func (ns Networks) AsRegistryNetworks() registry.NetworksSettings
type RebootVM ¶
type RebootVM struct {
// contains filtered or unexported fields
}
func NewRebootVM ¶
func NewRebootVM( vmService instance.Service, ) RebootVM
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 string
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) (SnapshotCID, error)
type SnapshotMetadata ¶
type StemcellCID ¶
type StemcellCID string
type StemcellCloudProperties ¶
type VMCloudProperties ¶
type VMCloudProperties struct { Zone string `json:"zone,omitempty"` MachineType string `json:"machine_type,omitempty"` CPU int `json:"cpu,omitempty"` RAM int `json:"ram,omitempty"` RootDiskSizeGb int `json:"root_disk_size_gb,omitempty"` RootDiskType string `json:"root_disk_type,omitempty"` AutomaticRestart bool `json:"automatic_restart,omitempty"` OnHostMaintenance string `json:"on_host_maintenance,omitempty"` Preemptible bool `json:"preemptible,omitempty"` ServiceScopes VMServiceScopes `json:"service_scopes,omitempty"` }
type VMMetadata ¶
type VMMetadata map[string]interface{}
type VMServiceScopes ¶
type VMServiceScopes []string
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_vm.go
- networks.go
- ping.go
- reboot_vm.go
- set_vm_metadata.go
- snapshot_disk.go
Click to show internal directories.
Click to hide internal directories.