Documentation
¶
Index ¶
- Variables
- type Driver
- func (d *Driver) GetCSIDriverDetails() (string, map[string]string, error)
- func (d *Driver) GetMountCommand() (string, error)
- func (d *Driver) GetPVCStub(name, namespace, storageClassName string) (*corev1.PersistentVolumeClaim, error)
- func (d *Driver) GetResizeCommand() (string, 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) GetMountCommand ¶ added in v0.0.5
GetMountCommand creates a PersistentVolumeClaim for driver
func (*Driver) GetPVCStub ¶
func (d *Driver) GetPVCStub(name, namespace, storageClassName string) (*corev1.PersistentVolumeClaim, error)
GetPVCStub creates a PersistentVolumeClaim for driver
func (*Driver) GetResizeCommand ¶ added in v0.0.5
GetResizeCommand gets resize command to execute on the host
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.