flavor

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Vanilla flavored CSI driver
	Vanilla = "vanilla"

	// Kubernetes flavored CSI driver
	Kubernetes = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Flavor

type Flavor interface {
	ConfigureAnnotations(claimName string, parameters map[string]string) (map[string]string, error)

	LoadNodeInfo(*model.Node) (string, error)
	UnloadNodeInfo()
	GetNodeInfo(nodeID string) (*model.Node, error)
	GetEphemeralVolumeSecretFromPod(volumeHandle string, podName string, namespace string) (string, error)
	GetCredentialsFromVolume(name string) (map[string]string, error)
	GetCredentialsFromSecret(name string, namespace string) (map[string]string, error)
	IsPodExists(uid string) (bool, error)
	CreateNFSVolume(pvName string, reqVolSize int64, parameters map[string]string, volumeContentSource *csi.VolumeContentSource) (nfsVolume *csi.Volume, rollback bool, err error)
	DeleteNFSVolume(pvName string) error
	RollbackNFSResources(nfsResourceName, nfsNamespace string) error
	HandleNFSNodePublish(request *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)
	IsNFSVolume(volumeID string) bool
	GetVolumePropertyOfPV(propertyName string, pvName string) (string, error)
	GetNFSVolumeID(volumeID string) (string, error)
	GetOrchestratorVersion() (*version.Info, error)
	MonitorPod(podLabelkey, podLabelvalue string) error
	GetGroupSnapshotNameFromSnapshotName(snapshotName string) (string, error)
}

Flavor defines the interface for the type of driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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