Documentation ¶
Index ¶
- Variables
- func CreateCloneVolumeSpec(snapshotData *crdv1.VolumeSnapshotData, pvc *v1.PersistentVolumeClaim, ...) (vol v1alpha1.CASVolume, class string)
- func GetK8sClient() (*kubernetes.Clientset, error)
- func GetMayaService() error
- func GetNameAndNameSpaceFromSnapshotName(name string) (string, string, error)
- func GetPersistentVolumeClass(volume *v1.PersistentVolume) string
- func GetPluginName() string
- func GetStorageClass(pvName string) (string, error)
- func RegisterPlugin() volume.Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrK8SApiAccountNotSet = errors.New("k8s api service-account is not setup")
ErrK8SApiAccountNotSet is returned when the account used to talk to k8s api is not setup
View Source
var ( // SnapSupportedCASType is a map of supported volume type for snapshot // operations. SnapSupportedCASType = map[string]bool{ "jiva": true, "cstor": true, } )
Functions ¶
func CreateCloneVolumeSpec ¶
func CreateCloneVolumeSpec(snapshotData *crdv1.VolumeSnapshotData, pvc *v1.PersistentVolumeClaim, pvName string, ) (vol v1alpha1.CASVolume, class string)
CreateVolumeSpec constructs the volumeSpec for volume create request
func GetK8sClient ¶
func GetK8sClient() (*kubernetes.Clientset, error)
GetK8sClient instantiates a k8s client
func GetMayaService ¶
func GetMayaService() error
func GetNameAndNameSpaceFromSnapshotName ¶
GetNameAndNameSpaceFromSnapshotName retrieves the namespace and the short name of a snapshot from its full name, for exmaple "test-ns/snap1"
func GetPersistentVolumeClass ¶
func GetPersistentVolumeClass(volume *v1.PersistentVolume) string
GetPersistentVolumeClass returns StorageClassName
func GetStorageClass ¶
GetPersistentClass returns StoragClassName
func RegisterPlugin ¶
RegisterPlugin registers the volume plugin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.