driver

package
v0.0.0-...-e7d1ed3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FSTypeExt4 = "ext4"
	FSTypeXfs  = "xfs"
)

Variables

This section is empty.

Functions

func NewControllerServer

func NewControllerServer(d *Driver, cloud openstack.IOpenstack) csi.ControllerServer

func NewIdentityServer

func NewIdentityServer(d *Driver, cloud openstack.IOpenstack) csi.IdentityServer

func NewNodeServer

func NewNodeServer(d *Driver, cloud openstack.IOpenstack, mount mount.IMount) csi.NodeServer

func ParseEndpoint

func ParseEndpoint(endpoint string) (string, string, error)

func RoundOffBytes

func RoundOffBytes(bytes int64) int

Types

type ControllerServer

type ControllerServer struct {
	// contains filtered or unexported fields
}

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetVolume

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

func (*ControllerServer) ValidateVolumeCapabilities

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(nodeId, version, endpoint string, cloud openstack.IOpenstack, mount mount.IMount) *Driver

func (*Driver) AddControllerCapability

func (d *Driver) AddControllerCapability(cl []csi.ControllerServiceCapability_RPC_Type)

func (*Driver) AddVolumeCapability

func (*Driver) GetVolumeCapability

func (d *Driver) GetVolumeCapability() []*csi.VolumeCapability_AccessMode

func (*Driver) Run

func (d *Driver) Run()

func (*Driver) ValidateControllerCapability

func (d *Driver) ValidateControllerCapability(ca csi.ControllerServiceCapability_RPC_Type) error

type NonBlockingStorageServer

type NonBlockingStorageServer interface {
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
	Wait()
	Stop()
	ForceStop()
}

func NewNonBlockingStorageServer

func NewNonBlockingStorageServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer) NonBlockingStorageServer

Jump to

Keyboard shortcuts

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