drivers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 GetDriver

func GetDriver(name string) *Driver

GetDriver returns given service

func (*Driver) GetCSIDriverDetails added in v0.0.5

func (d *Driver) GetCSIDriverDetails() (string, map[string]string, error)

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

func (d *Driver) IsFileSystemManaged() (bool, error)

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

func (d *Driver) WaitForVolumeAttachmentMeta() (string, error)

WaitForVolumeAttachmentMeta defines wait for device info of plugin

Jump to

Keyboard shortcuts

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