Documentation
¶
Index ¶
- Constants
- func SafeLabel(s string) (string, error)
- type Accelerator
- type AttachedDisks
- type BackendService
- type DiskAttachmentDetail
- type GoogleInstanceService
- func (i GoogleInstanceService) AddAccessConfig(id string, zone string, networkInterface string, ...) error
- func (i GoogleInstanceService) AttachDisk(id string, diskLink string) (*DiskAttachmentDetail, error)
- func (i GoogleInstanceService) AttachedDisks(id string) (AttachedDisks, error)
- func (i GoogleInstanceService) CleanUp(id string)
- func (i GoogleInstanceService) Create(vmProps *Properties, networks Networks, registryEndpoint string) (string, error)
- func (i GoogleInstanceService) Delete(id string) error
- func (i GoogleInstanceService) DeleteAccessConfig(id string, zone string, networkInterface string, accessConfig string) error
- func (i GoogleInstanceService) DetachDisk(id string, diskID string) error
- func (i GoogleInstanceService) DiskDetail(vmID string, diskLink string) (*DiskAttachmentDetail, error)
- func (i GoogleInstanceService) Find(id string, zone string) (*compute.Instance, bool, error)
- func (i GoogleInstanceService) FindBeta(id string, zone string) (*computebeta.Instance, bool, error)
- func (i GoogleInstanceService) Reboot(id string) error
- func (i GoogleInstanceService) SetMetadata(id string, vmMetadata Metadata) error
- func (i GoogleInstanceService) SetTags(id string, zone string, instanceTags *compute.Tags) error
- func (i GoogleInstanceService) UpdateNetworkConfiguration(id string, networks Networks) error
- type GoogleUserData
- type GoogleUserDataDNSItems
- type GoogleUserDataRegistryEndpoint
- type GoogleUserDataServerName
- type Labels
- type Metadata
- type Network
- type Networks
- func (n Networks) CanIPForward() bool
- func (n Networks) DNS() []string
- func (n Networks) EphemeralExternalIP() bool
- func (n Networks) Network() *Network
- func (n Networks) NetworkName() string
- func (n Networks) NetworkProjectID() string
- func (n Networks) StaticPrivateIP() string
- func (n Networks) SubnetworkName() string
- func (n Networks) Tags() Tags
- func (n Networks) Validate() error
- func (n Networks) VipNetwork() *Network
- type Properties
- type Service
- type ServiceAccount
- type ServiceScopes
- type Tags
Constants ¶
View Source
const ( STATUS_RUNNING = "RUNNING" STATUS_TERMINATED = "TERMINATED" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Accelerator ¶
type AttachedDisks ¶
type AttachedDisks []string
type BackendService ¶
type BackendService struct {
Name string
}
type DiskAttachmentDetail ¶
type GoogleInstanceService ¶
type GoogleInstanceService struct {
// contains filtered or unexported fields
}
func NewGoogleInstanceService ¶
func NewGoogleInstanceService( project string, computeService *compute.Service, computeServiceB *computebeta.Service, addressService address.Service, backendServiceService backendservice.Service, networkService network.Service, operationService operation.Service, subnetworkService subnetwork.Service, targetPoolService targetpool.Service, uuidGen boshuuid.Generator, logger boshlog.Logger, ) GoogleInstanceService
func (GoogleInstanceService) AddAccessConfig ¶
func (i GoogleInstanceService) AddAccessConfig(id string, zone string, networkInterface string, accessConfig *compute.AccessConfig) error
func (GoogleInstanceService) AttachDisk ¶
func (i GoogleInstanceService) AttachDisk(id string, diskLink string) (*DiskAttachmentDetail, error)
func (GoogleInstanceService) AttachedDisks ¶
func (i GoogleInstanceService) AttachedDisks(id string) (AttachedDisks, error)
func (GoogleInstanceService) CleanUp ¶
func (i GoogleInstanceService) CleanUp(id string)
func (GoogleInstanceService) Create ¶
func (i GoogleInstanceService) Create(vmProps *Properties, networks Networks, registryEndpoint string) (string, error)
func (GoogleInstanceService) Delete ¶
func (i GoogleInstanceService) Delete(id string) error
func (GoogleInstanceService) DeleteAccessConfig ¶
func (GoogleInstanceService) DetachDisk ¶
func (i GoogleInstanceService) DetachDisk(id string, diskID string) error
func (GoogleInstanceService) DiskDetail ¶
func (i GoogleInstanceService) DiskDetail(vmID string, diskLink string) (*DiskAttachmentDetail, error)
func (GoogleInstanceService) Find ¶
func (i GoogleInstanceService) Find(id string, zone string) (*compute.Instance, bool, error)
func (GoogleInstanceService) FindBeta ¶
func (i GoogleInstanceService) FindBeta(id string, zone string) (*computebeta.Instance, bool, error)
func (GoogleInstanceService) Reboot ¶
func (i GoogleInstanceService) Reboot(id string) error
func (GoogleInstanceService) SetMetadata ¶
func (i GoogleInstanceService) SetMetadata(id string, vmMetadata Metadata) error
func (GoogleInstanceService) SetTags ¶
func (i GoogleInstanceService) SetTags(id string, zone string, instanceTags *compute.Tags) error
func (GoogleInstanceService) UpdateNetworkConfiguration ¶
func (i GoogleInstanceService) UpdateNetworkConfiguration(id string, networks Networks) error
type GoogleUserData ¶
type GoogleUserData struct { Server GoogleUserDataServerName `json:"server"` Registry GoogleUserDataRegistryEndpoint `json:"registry"` DNS GoogleUserDataDNSItems `json:"dns,omitempty"` }
type GoogleUserDataDNSItems ¶
type GoogleUserDataDNSItems struct {
NameServer []string `json:"nameserver,omitempty"`
}
type GoogleUserDataRegistryEndpoint ¶
type GoogleUserDataRegistryEndpoint struct {
Endpoint string `json:"endpoint"`
}
type GoogleUserDataServerName ¶
type GoogleUserDataServerName struct {
Name string `json:"name"`
}
type Network ¶
type Networks ¶
func (Networks) CanIPForward ¶
func (Networks) EphemeralExternalIP ¶
func (Networks) NetworkName ¶
func (Networks) NetworkProjectID ¶
func (Networks) StaticPrivateIP ¶
func (Networks) SubnetworkName ¶
func (Networks) VipNetwork ¶
type Properties ¶
type Properties struct { Zone string Name string Stemcell string MachineType string RootDiskSizeGb int RootDiskType string AutomaticRestart bool OnHostMaintenance string Preemptible bool ServiceAccount ServiceAccount ServiceScopes ServiceScopes TargetPool string BackendService BackendService Tags Tags Labels Labels Accelerators []Accelerator }
type Service ¶
type Service interface { AddAccessConfig(id string, zone string, networkInterface string, accessConfig *compute.AccessConfig) error AttachDisk(id string, diskLink string) (*DiskAttachmentDetail, error) AttachedDisks(id string) (AttachedDisks, error) DiskDetail(vmID string, diskLink string) (*DiskAttachmentDetail, error) CleanUp(id string) Create(vmProps *Properties, networks Networks, registryEndpoint string) (string, error) Delete(id string) error DeleteAccessConfig(id string, zone string, networkInterface string, accessConfig string) error DetachDisk(id string, diskID string) error Find(id string, zone string) (*compute.Instance, bool, error) Reboot(id string) error SetMetadata(id string, vmMetadata Metadata) error SetTags(id string, zone string, instanceTags *compute.Tags) error UpdateNetworkConfiguration(id string, networks Networks) error }
type ServiceAccount ¶
type ServiceAccount string
type ServiceScopes ¶
type ServiceScopes []string
Source Files
¶
- google_instance_service.go
- google_instance_service_add_access_config.go
- google_instance_service_attach_disk.go
- google_instance_service_attached_disks.go
- google_instance_service_create.go
- google_instance_service_delete.go
- google_instance_service_delete_access_config.go
- google_instance_service_detach_disk.go
- google_instance_service_find.go
- google_instance_service_networks.go
- google_instance_service_reboot.go
- google_instance_set_metadata.go
- google_instance_set_tags.go
- instance_service.go
- labels.go
- network.go
- networks.go
Click to show internal directories.
Click to hide internal directories.