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
Click to show internal directories.
Click to hide internal directories.