Documentation ¶
Index ¶
- Variables
- type Driver
- func (d *Driver) GetCSIDriverDetails() (string, map[string]string, error)
- func (d *Driver) GetPVCStub(name, namespace, storageClassName string) (*corev1.PersistentVolumeClaim, error)
- func (d *Driver) GetPreMountCommand(pv *corev1.PersistentVolume, va *storagev1.VolumeAttachment) (string, error)
- func (d *Driver) GetPreResizeCommand(pv *corev1.PersistentVolume, va *storagev1.VolumeAttachment) (string, error)
- func (d *Driver) GetStorageClassAllowedTopology(node *corev1.Node) ([]corev1.TopologySelectorTerm, error)
- func (d *Driver) IsFileSystemManaged() (bool, error)
- func (d *Driver) IsStorageClassValid(sc *storagev1.StorageClass) (bool, error)
- func (d *Driver) WaitForVolumeAttachmentMeta() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DriversDir = "/drivers"
DriversDir driver location, configure with -ldflags -X github.com/ondat/discoblocks/pkg/drivers.DriversDir=/yourpath
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is the bridge to WASI modules
func (*Driver) GetCSIDriverDetails ¶ added in v0.0.5
GetCSIDriverDetails returns the labels of CSI driver Pod
func (*Driver) GetPVCStub ¶
func (d *Driver) GetPVCStub(name, namespace, storageClassName string) (*corev1.PersistentVolumeClaim, error)
GetPVCStub creates a PersistentVolumeClaim for driver
func (*Driver) GetPreMountCommand ¶ added in v0.0.6
func (d *Driver) GetPreMountCommand(pv *corev1.PersistentVolume, va *storagev1.VolumeAttachment) (string, error)
GetPreMountCommand returns pre mount command
func (*Driver) GetPreResizeCommand ¶ added in v0.0.6
func (d *Driver) GetPreResizeCommand(pv *corev1.PersistentVolume, va *storagev1.VolumeAttachment) (string, error)
GetPreResizeCommand returns pre resize command
func (*Driver) GetStorageClassAllowedTopology ¶ added in v0.0.6
func (d *Driver) GetStorageClassAllowedTopology(node *corev1.Node) ([]corev1.TopologySelectorTerm, error)
GetStorageClassAllowedTopology validates StorageClass
func (*Driver) IsFileSystemManaged ¶ added in v0.0.6
IsFileSystemManaged determines is file system managed by driver
func (*Driver) IsStorageClassValid ¶
func (d *Driver) IsStorageClassValid(sc *storagev1.StorageClass) (bool, error)
IsStorageClassValid validates StorageClass
func (*Driver) WaitForVolumeAttachmentMeta ¶ added in v0.0.5
WaitForVolumeAttachmentMeta defines wait for device info of plugin
Click to show internal directories.
Click to hide internal directories.