Documentation
¶
Index ¶
- type BoshEnv
- type CPI
- func (a CPI) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a CPI) CalculateVMCloudProperties(res apiv1.VMResources) (apiv1.VMCloudProps, error)
- func (a CPI) CreateDisk(size int, props apiv1.DiskCloudProps, cid *apiv1.VMCID) (apiv1.DiskCID, error)
- func (a CPI) CreateStemcell(imagePath string, cp apiv1.StemcellCloudProps) (apiv1.StemcellCID, error)
- func (a CPI) CreateVM(agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, ...) (apiv1.VMCID, error)
- func (a CPI) DeleteDisk(cid apiv1.DiskCID) error
- func (a CPI) DeleteSnapshot(cid apiv1.SnapshotCID) error
- func (a CPI) DeleteStemcell(cid apiv1.StemcellCID) error
- func (a CPI) DeleteVM(cid apiv1.VMCID) error
- func (a CPI) DetachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a CPI) GetDisks(cid apiv1.VMCID) ([]apiv1.DiskCID, error)
- func (a CPI) HasDisk(cid apiv1.DiskCID) (bool, error)
- func (a CPI) HasVM(cid apiv1.VMCID) (bool, error)
- func (a CPI) Info() (apiv1.Info, error)
- func (a CPI) PeriodicCleanDisk()
- func (a CPI) RebootVM(cid apiv1.VMCID) error
- func (a CPI) ResizeDisk(cid apiv1.DiskCID, size int) error
- func (a CPI) SetDiskMetadata(cid apiv1.DiskCID, meta apiv1.DiskMeta) error
- func (a CPI) SetVMMetadata(cid apiv1.VMCID, meta apiv1.VMMeta) error
- func (a CPI) SnapshotDisk(diskCID apiv1.DiskCID, meta apiv1.DiskMeta) (apiv1.SnapshotCID, error)
- type CloudStackCloudProperties
- type ComputeCloudProperties
- type Context
- type DiskCloudProperties
- type Factory
- type LBCloudProperties
- type LBConfig
- type NetworkCloudProperties
- type NotImplementedError
- type ResourceCloudProperties
- type UserDataContentsType
- type UserDataDNS
- type UserDataRegistry
- type UserDataServer
- type VMEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPI ¶
type CPI struct {
// contains filtered or unexported fields
}
func (CPI) CalculateVMCloudProperties ¶
func (a CPI) CalculateVMCloudProperties(res apiv1.VMResources) (apiv1.VMCloudProps, error)
func (CPI) CreateDisk ¶
func (CPI) CreateStemcell ¶
func (a CPI) CreateStemcell(imagePath string, cp apiv1.StemcellCloudProps) (apiv1.StemcellCID, error)
CreateStemcell - Create CS template from given stemcell
1. read cloud-properties 2. generate template name from random id 3. request CS an upload token 4. push image to CS recieved endpoint
func (CPI) DeleteSnapshot ¶
func (a CPI) DeleteSnapshot(cid apiv1.SnapshotCID) error
func (CPI) DeleteStemcell ¶
func (a CPI) DeleteStemcell(cid apiv1.StemcellCID) error
DeleteStemcell - Delete CS template matching given stemcell name
func (CPI) PeriodicCleanDisk ¶
func (a CPI) PeriodicCleanDisk()
func (CPI) SetDiskMetadata ¶
func (CPI) SnapshotDisk ¶
type CloudStackCloudProperties ¶
type CloudStackCloudProperties struct { Name string `json:"name"` Version string `json:"version"` Infrastructure string `json:"infrastructure"` Hypervisor string `json:"hypervisor"` Disk int `json:"disk"` DiskFormat string `json:"disk_format"` ContainerFormat string `json:"container_format"` OsType string `json:"os_type"` OsDistro string `json:"os_distro"` Architecture string `json:"architecture"` AutoDiskConfig bool `json:"auto_disk_config"` LightTemplate string `json:"light_template"` }
func (CloudStackCloudProperties) Validate ¶
func (cc CloudStackCloudProperties) Validate() error
type ComputeCloudProperties ¶ added in v1.3.4
type DiskCloudProperties ¶
type LBCloudProperties ¶ added in v1.3.0
type LBCloudProperties struct {
Lbs []LBConfig `json:"lbs"`
}
type NetworkCloudProperties ¶
type NetworkCloudProperties struct {
Name string `json:"name"`
}
type NotImplementedError ¶
type NotImplementedError string
func NewNotImplementedError ¶
func NewNotImplementedError(err error) NotImplementedError
func (NotImplementedError) Error ¶
func (e NotImplementedError) Error() string
func (NotImplementedError) Type ¶
func (e NotImplementedError) Type() string
type ResourceCloudProperties ¶
type ResourceCloudProperties struct { DiskCloudProperties LBCloudProperties ComputeCloudProperties ComputeOffering string `json:"compute_offering"` AffinityGroup string `json:"affinity_group"` AffinityGroupType string `json:"affinity_group_type"` }
type UserDataContentsType ¶
type UserDataContentsType struct { Registry UserDataRegistry Server UserDataServer DNS UserDataDNS }
func NewUserDataContents ¶
func NewUserDataContents(vmName string, regOpts config.RegistryOptions, networks apiv1.Networks) UserDataContentsType
type UserDataDNS ¶
type UserDataDNS struct {
Nameserver []string
}
type UserDataRegistry ¶
type UserDataRegistry struct {
Endpoint string
}
type UserDataServer ¶
type UserDataServer struct {
Name string // Name given by CPI e.g. vm-384sd4-r7re9e...
}
Source Files
¶
- attach_disk.go
- calculate_vm_cloud_properties.go
- common.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
- disk_cloud_properties.go
- env.go
- errors.go
- factory.go
- get_disks.go
- has_disk.go
- has_vm.go
- info.go
- load_balancer.go
- metadata_service.go
- periodic_clean_disk.go
- reboot_vm.go
- resize_disk.go
- set_disk_metadata.go
- set_vm_metadata.go
- snapshot_disk.go
- vm_cloud_properties.go
Click to show internal directories.
Click to hide internal directories.