mfs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMFSdriver

func NewMFSdriver(nodeID, endpoint, mfsServer, mfsdir string) (*mfsDriver, error)

Types

type ControllerServer

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

func NewControllerServer

func NewControllerServer(k8cl kubernetes.Interface, d *mfsDriver, root, mountDir string) (*ControllerServer, error)

func (*ControllerServer) Close

func (cs *ControllerServer) Close() error

Close the server and release resources.

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements the default GRPC callout. Default supports all capabilities

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) Register

func (cs *ControllerServer) Register(srv *grpc.Server)

Register node server to the grpc server

type IdentityServer

type IdentityServer struct {
	Driver *mfsDriver
}

func NewIdentityServer

func NewIdentityServer(d *mfsDriver) (*IdentityServer, error)

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

func (*IdentityServer) Register

func (ids *IdentityServer) Register(srv *grpc.Server)

Register identity server to the grpc server

type NodeServer

type NodeServer struct {
	Driver *mfsDriver
	// contains filtered or unexported fields
}

func NewNodeServer

func NewNodeServer(n *mfsDriver, mounter mount.Interface, root string) *NodeServer

func (*NodeServer) NodeExpandVolume

func (*NodeServer) NodeGetCapabilities

func (*NodeServer) NodeGetInfo

func (*NodeServer) NodeGetVolumeStats

func (*NodeServer) NodePublishVolume

func (*NodeServer) NodeStageVolume

func (*NodeServer) NodeUnpublishVolume

func (*NodeServer) NodeUnstageVolume

func (*NodeServer) Register

func (ns *NodeServer) Register(srv *grpc.Server)

Register node server to the grpc server

func (*NodeServer) SetQuota

func (ns *NodeServer) SetQuota(ctx context.Context, path string, size int64) (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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