Documentation ¶
Index ¶
- Constants
- Variables
- type Accelerator
- type Action
- type AttachDisk
- type CalculateVMCloudProperties
- type ConcreteFactory
- type ConcreteFactoryOptions
- type ConfigureNetworks
- type CreateDisk
- type CreateStemcell
- type CreateVM
- type DeleteDisk
- type DeleteSnapshot
- type DeleteStemcell
- type DeleteVM
- type DesiredVMSpec
- type DetachDisk
- type DiskCID
- type DiskCloudProperties
- 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 SetVMMetadata
- type SnapshotCID
- type SnapshotDisk
- type SnapshotMetadata
- type StemcellCID
- type StemcellCloudProperties
- type VMCID
- type VMCloudProperties
- type VMMetadata
- type VMServiceAccount
- type VMServiceScopes
Constants ¶
View Source
const (
NoCPUErr = "CPU must be greater than 0"
)
Variables ¶
View Source
var GoogleClientFunc func(bogcconfig.Config, boshlog.Logger) (client.GoogleClient, error) = client.NewGoogleClient
Functions ¶
This section is empty.
Types ¶
type Accelerator ¶
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 CalculateVMCloudProperties ¶
type CalculateVMCloudProperties struct{}
func NewCalculateVMCloudProperties ¶
func NewCalculateVMCloudProperties() CalculateVMCloudProperties
func (CalculateVMCloudProperties) Run ¶
func (CalculateVMCloudProperties) Run(desired DesiredVMSpec) (VMCloudProperties, error)
type ConcreteFactory ¶
type ConcreteFactory struct {
// contains filtered or unexported fields
}
func NewConcreteFactory ¶
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, ) 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, acceleratorTypeService acceleratortype.Service, registryClient registry.Client, registryOptions registry.ClientOptions, agentOptions registry.AgentOptions, defaultRootDiskSizeGb int, defaultRootDiskType 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 ¶
type DesiredVMSpec ¶
type DetachDisk ¶
type DetachDisk struct {
// contains filtered or unexported fields
}
func NewDetachDisk ¶
func NewDetachDisk( vmService instance.Service, registryClient registry.Client, ) DetachDisk
type DiskCloudProperties ¶
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"` CloudProperties NetworkCloudProperties `json:"cloud_properties,omitempty"` }
type NetworkCloudProperties ¶
type NetworkCloudProperties struct { NetworkName string `json:"network_name,omitempty"` NetworkProjectID string `json:"xpn_host_project_id,omitempty"` SubnetworkName string `json:"subnetwork_name,omitempty"` Tags instance.Tags `json:"tags,omitempty"` EphemeralExternalIP bool `json:"ephemeral_external_ip,omitempty"` IPForwarding bool `json:"ip_forwarding,omitempty"` }
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 StemcellCloudProperties struct { Name string `json:"name,omitempty"` Version string `json:"version,omitempty"` Infrastructure string `json:"infrastructure,omitempty"` SourceURL string `json:"source_url,omitempty"` // URL of an existing image (Image.SelfLink) ImageURL string `json:"image_url,omitempty"` SourceSha1 string `json:"raw_disk_sha1,omitempty"` }
type VMCloudProperties ¶
type VMCloudProperties struct { Zone string `json:"zone,omitempty"` Name string `json:"name,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"` ServiceAccount VMServiceAccount `json:"service_account,omitempty"` ServiceScopes VMServiceScopes `json:"service_scopes,omitempty"` TargetPool string `json:"target_pool,omitempty"` BackendService interface{} `json:"backend_service,omitempty"` Tags instance.Tags `json:"tags,omitempty"` Labels instance.Labels `json:"labels,omitempty"` EphemeralExternalIP *bool `json:"ephemeral_external_ip,omitempty"` IPForwarding *bool `json:"ip_forwarding,omitempty"` Accelerators []Accelerator `json:"accelerators,omitempty"` }
func (VMCloudProperties) Validate ¶
func (n VMCloudProperties) Validate() error
type VMMetadata ¶
type VMServiceAccount ¶
type VMServiceAccount string
type VMServiceScopes ¶
type VMServiceScopes []string
Source Files ¶
- action_interface.go
- attach_disk.go
- calculate_vm_cloud_properties.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_vm_metadata.go
- snapshot_disk.go
Click to show internal directories.
Click to hide internal directories.