Documentation
¶
Index ¶
- type AttachDiskMethod
- func (a AttachDiskMethod) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a AttachDiskMethod) AttachDiskV2(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) (apiv1.DiskHint, error)
- func (a AttachDiskMethod) GetDeviceChar(inspectChar rune, attachments []volumeattach.VolumeAttachment) (rune, error)
- func (a AttachDiskMethod) GetFirstDeviceNameLetterWrapper(computeService compute.ComputeService, server servers.Server) (rune, error)
- func (a AttachDiskMethod) GetMountPoint(computeService compute.ComputeService, server servers.Server) (string, error)
- type CalculateVMCloudPropertiesMethod
- type CreateDiskMethod
- type CreateStemcellMethod
- type CreateVMMethod
- type DeleteDiskMethod
- type DeleteSnapshotMethod
- type DeleteStemcellMethod
- type DeleteVMMethod
- type DetachDiskMethod
- type GetDisksMethod
- type HasDiskMethod
- type HasVMMethod
- type InfoMethod
- type RebootVMMethod
- type ResizeDiskMethod
- type SetDiskMetadataMethod
- type SetVMMetadataMethod
- type SnapshotDiskMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachDiskMethod ¶
type AttachDiskMethod struct {
// contains filtered or unexported fields
}
func NewAttachDiskMethod ¶
func NewAttachDiskMethod( computeServiceBuilder compute.ComputeServiceBuilder, volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) AttachDiskMethod
func (AttachDiskMethod) AttachDisk ¶
func (AttachDiskMethod) AttachDiskV2 ¶
func (AttachDiskMethod) GetDeviceChar ¶
func (a AttachDiskMethod) GetDeviceChar(inspectChar rune, attachments []volumeattach.VolumeAttachment) (rune, error)
func (AttachDiskMethod) GetFirstDeviceNameLetterWrapper ¶
func (a AttachDiskMethod) GetFirstDeviceNameLetterWrapper(computeService compute.ComputeService, server servers.Server) (rune, error)
func (AttachDiskMethod) GetMountPoint ¶
func (a AttachDiskMethod) GetMountPoint(computeService compute.ComputeService, server servers.Server) (string, error)
type CalculateVMCloudPropertiesMethod ¶
type CalculateVMCloudPropertiesMethod struct {
// contains filtered or unexported fields
}
func NewCalculateVMCloudPropertiesMethod ¶
func NewCalculateVMCloudPropertiesMethod( computeServiceBuilder compute.ComputeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) CalculateVMCloudPropertiesMethod
func (CalculateVMCloudPropertiesMethod) CalculateVMCloudProperties ¶
func (a CalculateVMCloudPropertiesMethod) CalculateVMCloudProperties(requirements apiv1.VMResources) (apiv1.VMCloudProps, error)
type CreateDiskMethod ¶
type CreateDiskMethod struct {
// contains filtered or unexported fields
}
func NewCreateDiskMethod ¶
func NewCreateDiskMethod( computeServiceBuilder compute.ComputeServiceBuilder, volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) CreateDiskMethod
func (CreateDiskMethod) CreateDisk ¶
func (a CreateDiskMethod) CreateDisk( size int, props apiv1.DiskCloudProps, vmCID *apiv1.VMCID) (apiv1.DiskCID, error)
type CreateStemcellMethod ¶
type CreateStemcellMethod struct {
// contains filtered or unexported fields
}
func NewCreateStemcellMethod ¶
func NewCreateStemcellMethod( imageServiceBuilder image.ImageServiceBuilder, heavyStemcellCreator image.HeavyStemcellCreator, lightStemcellCreator image.LightStemcellCreator, rootImageProvider root_image.RootImage, config config.OpenstackConfig, logger utils.Logger, ) CreateStemcellMethod
func (CreateStemcellMethod) CreateStemcell ¶
func (a CreateStemcellMethod) CreateStemcell( imagePath string, props apiv1.StemcellCloudProps, ) (apiv1.StemcellCID, error)
type CreateVMMethod ¶
type CreateVMMethod struct {
// contains filtered or unexported fields
}
func NewCreateVMMethod ¶
func NewCreateVMMethod( imageServiceBuilder image.ImageServiceBuilder, networkServiceBuilder network.NetworkServiceBuilder, computeServiceBuilder compute.ComputeServiceBuilder, loadbalancerServiceBuilder loadbalancer.LoadbalancerServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) CreateVMMethod
func (CreateVMMethod) CreateVMV2 ¶
type DeleteDiskMethod ¶
type DeleteDiskMethod struct {
// contains filtered or unexported fields
}
func NewDeleteDiskMethod ¶
func NewDeleteDiskMethod( volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) DeleteDiskMethod
func (DeleteDiskMethod) DeleteDisk ¶
func (a DeleteDiskMethod) DeleteDisk(diskCID apiv1.DiskCID) error
type DeleteSnapshotMethod ¶
type DeleteSnapshotMethod struct {
// contains filtered or unexported fields
}
func NewDeleteSnapshotMethod ¶
func NewDeleteSnapshotMethod( volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger) DeleteSnapshotMethod
func (DeleteSnapshotMethod) DeleteSnapshot ¶
func (s DeleteSnapshotMethod) DeleteSnapshot(cid apiv1.SnapshotCID) error
type DeleteStemcellMethod ¶
type DeleteStemcellMethod struct {
// contains filtered or unexported fields
}
func NewDeleteStemcellMethod ¶
func NewDeleteStemcellMethod( serviceFactory image.ImageServiceBuilder, logger utils.Logger, ) DeleteStemcellMethod
func (DeleteStemcellMethod) DeleteStemcell ¶
func (a DeleteStemcellMethod) DeleteStemcell(cid apiv1.StemcellCID) error
type DeleteVMMethod ¶
type DeleteVMMethod struct {
// contains filtered or unexported fields
}
func NewDeleteVMMethod ¶
func NewDeleteVMMethod( networkServiceBuilder network.NetworkServiceBuilder, computeServiceBuilder compute.ComputeServiceBuilder, loadbalancerServiceBuilder loadbalancer.LoadbalancerServiceBuilder, config config.CpiConfig, logger utils.Logger, ) DeleteVMMethod
type DetachDiskMethod ¶
type DetachDiskMethod struct {
// contains filtered or unexported fields
}
func NewDetachDiskMethod ¶
func NewDetachDiskMethod( computeServiceBuilder compute.ComputeServiceBuilder, volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) DetachDiskMethod
func (DetachDiskMethod) DetachDisk ¶
type GetDisksMethod ¶
type GetDisksMethod struct {
// contains filtered or unexported fields
}
func NewGetDisksMethod ¶
func NewGetDisksMethod( computeServiceBuilder compute.ComputeServiceBuilder, logger utils.Logger, ) GetDisksMethod
type HasDiskMethod ¶
type HasDiskMethod struct {
// contains filtered or unexported fields
}
func NewHasDiskMethod ¶
func NewHasDiskMethod( volumeServiceBuilder volume.VolumeServiceBuilder, logger utils.Logger, ) HasDiskMethod
type HasVMMethod ¶
type HasVMMethod struct {
// contains filtered or unexported fields
}
func NewHasVMMethod ¶
func NewHasVMMethod( computeServiceBuilder compute.ComputeServiceBuilder, logger utils.Logger, ) HasVMMethod
type RebootVMMethod ¶
type RebootVMMethod struct {
// contains filtered or unexported fields
}
func NewRebootVMMethod ¶
func NewRebootVMMethod( computeServiceBuilder compute.ComputeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) RebootVMMethod
type ResizeDiskMethod ¶
type ResizeDiskMethod struct {
// contains filtered or unexported fields
}
func NewResizeDiskMethod ¶
func NewResizeDiskMethod( volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger, ) ResizeDiskMethod
func (ResizeDiskMethod) ResizeDisk ¶
func (r ResizeDiskMethod) ResizeDisk(cid apiv1.DiskCID, size int) error
type SetDiskMetadataMethod ¶
type SetDiskMetadataMethod struct {
// contains filtered or unexported fields
}
func NewSetDiskMetadataMethod ¶
func NewSetDiskMetadataMethod( computeServiceBuilder compute.ComputeServiceBuilder, volumeServiceBuilder volume.VolumeServiceBuilder, logger utils.Logger, ) SetDiskMetadataMethod
func (SetDiskMetadataMethod) SetDiskMetadata ¶
type SetVMMetadataMethod ¶
type SetVMMetadataMethod struct {
// contains filtered or unexported fields
}
func NewSetVMMetadataMethod ¶
func NewSetVMMetadataMethod( computeServiceBuilder compute.ComputeServiceBuilder, logger utils.Logger, cpiConfig config.CpiConfig, ) SetVMMetadataMethod
func (SetVMMetadataMethod) SetVMMetadata ¶
type SnapshotDiskMethod ¶
type SnapshotDiskMethod struct {
// contains filtered or unexported fields
}
func NewSnapshotDiskMethod ¶
func NewSnapshotDiskMethod( volumeServiceBuilder volume.VolumeServiceBuilder, cpiConfig config.CpiConfig, logger utils.Logger) SnapshotDiskMethod
func (SnapshotDiskMethod) SnapshotDisk ¶
func (s SnapshotDiskMethod) SnapshotDisk(cid apiv1.DiskCID, meta apiv1.DiskMeta) (apiv1.SnapshotCID, error)
Source Files
¶
- attach_disk.go
- attach_disk_wrapper.go
- calculate_vm_cloud_properties.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
- get_disks.go
- has_disk.go
- has_vm.go
- info.go
- reboot_vm.go
- resize_disk.go
- set_disk_metadata.go
- set_vm_metadata.go
- snapshot_disk.go
Click to show internal directories.
Click to hide internal directories.