driver

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MfsLog bool
View Source
var SanityTestRun bool

Functions

func CreateListener

func CreateListener(csiEndpoint string) (net.Listener, error)

CreateListener create listener ready for communication over given csi endpoint

func CreategRPCServer

func CreategRPCServer() *grpc.Server

func Init

func Init(sanityTestRun bool, logLevel int, mfsLog bool) error

func NewMfsHandler

func NewMfsHandler(mfsmaster string, mfsmaster_port int, rootPath, pluginDataPath, name string, num ...int) *mfsHandler

func StartService

func StartService(service *Service, mode, csiEndpoint string) error

Types

type ControllerService

type ControllerService struct {
	//	csi.UnimplementedControllerServer
	csi.ControllerServer
	Service
	// contains filtered or unexported fields
}

func NewControllerService

func NewControllerService(mfsmaster string, mfsmaster_port int, rootPath, pluginDataPath string) (*ControllerService, error)

func (*ControllerService) ControllerExpandVolume

func (*ControllerService) ControllerPublishVolume

func (*ControllerService) CreateVolume

CreateVolume creates a new volume from the given request. The function is idempotent.

func (*ControllerService) DeleteVolume

type IdentityService

type IdentityService struct {
	csi.UnimplementedIdentityServer
	Service
}

func (*IdentityService) GetPluginCapabilities

func (*IdentityService) GetPluginInfo

func (*IdentityService) Probe

type Mounter

type Mounter struct {
	MounterInterface
}

func (*Mounter) IsMounted

func (m *Mounter) IsMounted(destPath string) (bool, error)

func (*Mounter) Mount

func (m *Mounter) Mount(sourcePath, destPath, mountType string, opts ...string) error

func (*Mounter) UMount

func (m *Mounter) UMount(destPath string) error

type MounterInterface

type MounterInterface interface {
	// Mount a volume
	Mount(sourcePath string, destPath, mountType string, opts ...string) error

	// Unmount a volume
	UMount(destPath string) error

	// Verify mount
	IsMounted(destPath string) (bool, error)
}

type NodeService

type NodeService struct {
	csi.UnimplementedNodeServer
	Service
	// contains filtered or unexported fields
}

func NewNodeService

func NewNodeService(mfsmaster string, mfsmaster_port int, rootPath, pluginDataPath, nodeId string, mountPointsCount int) (*NodeService, error)

func (*NodeService) NodeGetCapabilities

func (*NodeService) NodeGetInfo

func (*NodeService) NodePublishVolume

func (*NodeService) NodeUnpublishVolume

type Service

type Service interface{}

Jump to

Keyboard shortcuts

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