sfs

package
v0.0.0-...-d214319 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(source, target, mountOptions string) error

func Run

func Run(cmd string) (string, error)

func Unmount

func Unmount(target string) error

Types

type NonBlockingGRPCServer

type NonBlockingGRPCServer interface {
	// Start services at the endpoint
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
	// Waits for the service to stop
	Wait()
	// Stops the service gracefully
	Stop()
	// Stops the service forcefully
	ForceStop()
}

NonBlockingGRPCServer defines Non blocking GRPC server interfaces

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

type SfsDriver

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

func NewDriver

func NewDriver(nodeID, endpoint, shareProto string, cloud config.CloudCredentials) *SfsDriver

func (*SfsDriver) AddControllerServiceCapabilities

func (d *SfsDriver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)

func (*SfsDriver) AddNodeServiceCapabilities

func (d *SfsDriver) AddNodeServiceCapabilities(nl []csi.NodeServiceCapability_RPC_Type)

func (*SfsDriver) AddVolumeCapabilityAccessModes

func (d *SfsDriver) AddVolumeCapabilityAccessModes(vc []csi.VolumeCapability_AccessMode_Mode) []*csi.VolumeCapability_AccessMode

func (*SfsDriver) GetVolumeCapabilityAccessModes

func (d *SfsDriver) GetVolumeCapabilityAccessModes() []*csi.VolumeCapability_AccessMode

func (*SfsDriver) Run

func (d *SfsDriver) Run()

func (*SfsDriver) SetupDriver

func (d *SfsDriver) SetupDriver(mount mounts.IMount)

func (*SfsDriver) ValidateControllerServiceRequest

func (d *SfsDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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