methods

package
v0.0.0-...-560fb73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 (a AttachDiskMethod) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error

func (AttachDiskMethod) AttachDiskV2

func (a AttachDiskMethod) AttachDiskV2(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) (apiv1.DiskHint, error)

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) CreateVM

func (m CreateVMMethod) CreateVM(
	agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, cloudProps apiv1.VMCloudProps,
	networks apiv1.Networks, diskCIDs []apiv1.DiskCID, env apiv1.VMEnv) (apiv1.VMCID, error)

func (CreateVMMethod) CreateVMV2

func (m CreateVMMethod) CreateVMV2(
	agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, props apiv1.VMCloudProps,
	networks apiv1.Networks, diskCIDs []apiv1.DiskCID, env apiv1.VMEnv) (apiv1.VMCID, apiv1.Networks, error)

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

func (DeleteVMMethod) DeleteVM

func (a DeleteVMMethod) DeleteVM(cid apiv1.VMCID) error

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

func (a DetachDiskMethod) DetachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error

type GetDisksMethod

type GetDisksMethod struct {
	// contains filtered or unexported fields
}

func NewGetDisksMethod

func NewGetDisksMethod(
	computeServiceBuilder compute.ComputeServiceBuilder,
	logger utils.Logger,
) GetDisksMethod

func (GetDisksMethod) GetDisks

func (a GetDisksMethod) GetDisks(cid apiv1.VMCID) ([]apiv1.DiskCID, error)

type HasDiskMethod

type HasDiskMethod struct {
	// contains filtered or unexported fields
}

func NewHasDiskMethod

func NewHasDiskMethod(
	volumeServiceBuilder volume.VolumeServiceBuilder,
	logger utils.Logger,
) HasDiskMethod

func (HasDiskMethod) HasDisk

func (a HasDiskMethod) HasDisk(cid apiv1.DiskCID) (bool, error)

type HasVMMethod

type HasVMMethod struct {
	// contains filtered or unexported fields
}

func NewHasVMMethod

func NewHasVMMethod(
	computeServiceBuilder compute.ComputeServiceBuilder,
	logger utils.Logger,
) HasVMMethod

func (HasVMMethod) HasVM

func (a HasVMMethod) HasVM(vmCID apiv1.VMCID) (bool, error)

type InfoMethod

type InfoMethod struct{}

func NewInfoMethod

func NewInfoMethod() InfoMethod

func (InfoMethod) Info

func (a InfoMethod) Info() (apiv1.Info, error)

type RebootVMMethod

type RebootVMMethod struct {
	// contains filtered or unexported fields
}

func NewRebootVMMethod

func NewRebootVMMethod(
	computeServiceBuilder compute.ComputeServiceBuilder,
	cpiConfig config.CpiConfig,
	logger utils.Logger,
) RebootVMMethod

func (RebootVMMethod) RebootVM

func (a RebootVMMethod) RebootVM(vmCID apiv1.VMCID) error

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

func (s SetDiskMetadataMethod) SetDiskMetadata(diskCID apiv1.DiskCID, metaData apiv1.DiskMeta) error

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

func (s SetVMMetadataMethod) SetVMMetadata(vmCID apiv1.VMCID, meta apiv1.VMMeta) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL