vanilla

package
v3.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CNSVolumesforListVolume = make([]cnstypes.CnsVolume, 0)

	// variable for list snapshots
	CNSSnapshotsForListSnapshots = make([]cnstypes.CnsSnapshotQueryResultEntry, 0)
	CNSVolumeDetailsMap          = make([]map[string]*utils.CnsVolumeDetails, 0)
)

Functions

func GetVolumeManagerFromVCHost

func GetVolumeManagerFromVCHost(ctx context.Context, managers *common.Managers, vCenterHost string) (
	cnsvolume.Manager, error)

GetVolumeManagerFromVCHost retreives the volume manager associated with vCenterHost under managers. Error out if the vCenterHost does not exist.

func New

func New() csitypes.CnsController

New creates a CNS controller.

Types

type NodeManagerInterface

type NodeManagerInterface interface {
	Initialize(ctx context.Context, useNodeUuid bool) error
	GetSharedDatastoresInK8SCluster(ctx context.Context) ([]*cnsvsphere.DatastoreInfo, error)
	GetNodeByName(ctx context.Context, nodeName string) (*cnsvsphere.VirtualMachine, error)
	GetNodeNameByUUID(ctx context.Context, nodeUUID string) (string, error)
	GetNodeByUuid(ctx context.Context, nodeUuid string) (*cnsvsphere.VirtualMachine, error)
	GetAllNodes(ctx context.Context) ([]*cnsvsphere.VirtualMachine, error)
	GetAllNodesByVC(ctx context.Context, vcHost string) ([]*cnsvsphere.VirtualMachine, error)
}

NodeManagerInterface provides functionality to manage (VM) nodes.

Jump to

Keyboard shortcuts

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