controller

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FailureStatus = "Failure"
	SuccessStatus = "Success"
)

Variables

This section is empty.

Functions

func FilterDrivesByAccessTier added in v1.3.0

func FilterDrivesByAccessTier(accessTier directcsi.AccessTier, csiDrives []directcsi.DirectCSIDrive) []directcsi.DirectCSIDrive

func FilterDrivesByCapacityRange added in v1.0.0

func FilterDrivesByCapacityRange(capacityRange *csi.CapacityRange, csiDrives []directcsi.DirectCSIDrive) []directcsi.DirectCSIDrive

FilterDrivesByCapacityRange - Filters the CSI drives by capacity range in the create volume request

func FilterDrivesByFsType added in v1.0.0

func FilterDrivesByFsType(fsType string, csiDrives []directcsi.DirectCSIDrive) []directcsi.DirectCSIDrive

FilterDrivesByFsType - Filters the CSI drives by filesystem

func FilterDrivesByParameters added in v1.3.0

func FilterDrivesByParameters(parameters map[string]string, csiDrives []directcsi.DirectCSIDrive) ([]directcsi.DirectCSIDrive, error)

FilterDrivesByParameters - Filters the CSI drives by request parameters

func FilterDrivesByRequestFormat added in v1.0.0

func FilterDrivesByRequestFormat(csiDrives []directcsi.DirectCSIDrive) []directcsi.DirectCSIDrive

FilterDrivesByRequestFormat - Selects the drives only if the requested format is empty/satisfied already.

func FilterDrivesByTopologyRequirements added in v1.0.0

func FilterDrivesByTopologyRequirements(volReq *csi.CreateVolumeRequest, csiDrives []directcsi.DirectCSIDrive, nodeID string) (directcsi.DirectCSIDrive, error)

FilterDrivesByTopologyRequirements - selects the CSI drive by topology in the create volume request

func FilterDrivesByVolumeRequest added in v1.0.0

func FilterDrivesByVolumeRequest(volReq *csi.CreateVolumeRequest, csiDrives []directcsi.DirectCSIDrive) ([]directcsi.DirectCSIDrive, error)

FilterDrivesByVolumeRequest - Filters the CSI drives by create volume request

Types

type ControllerServer

type ControllerServer struct {
	NodeID   string
	Identity string
	Rack     string
	Zone     string
	Region   string
	// contains filtered or unexported fields
}

func NewControllerServer

func NewControllerServer(ctx context.Context, identity, nodeID, rack, zone, region string) (*ControllerServer, error)

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetVolume

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

CreateVolume - Creates a DirectCSI Volume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

type ValidationHandler added in v1.1.0

type ValidationHandler struct {
}

Jump to

Keyboard shortcuts

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