cnsvolumeinfo

package
v3.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CRDGroupName represent the group of cnsvolumeinfo CRD.
	CRDGroupName = "cns.vmware.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeInfoService

type VolumeInfoService interface {
	// GetvCenterForVolumeID return vCenter for the given VolumeID
	GetvCenterForVolumeID(ctx context.Context, volumeID string) (string, error)

	// CreateVolumeInfo creates VolumeInfo CR to persist VolumeID to vCenter mapping
	CreateVolumeInfo(ctx context.Context, volumeID string, vCenter string) error

	// DeleteVolumeInfo deletes VolumeInfo CR for the given VolumeID
	DeleteVolumeInfo(ctx context.Context, volumeID string) error

	// ListAllVolumeInfos lists all the VolumeInfo CRs present in the cluster
	ListAllVolumeInfos() []interface{}

	// VolumeInfoCrExistsForVolume returns true if VolumeInfo CR for
	// a given volume exists
	VolumeInfoCrExistsForVolume(ctx context.Context, volumeID string) (bool, error)
}

func InitVolumeInfoService

func InitVolumeInfoService(ctx context.Context) (VolumeInfoService, error)

InitVolumeInfoService returns the singleton VolumeInfoService.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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