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.
Types ¶
type NodeManagerInterface ¶
type NodeManagerInterface interface { Initialize(ctx context.Context, useNodeUuid bool) 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.
Click to show internal directories.
Click to hide internal directories.