pmemcsidriver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//PmemDriverTopologyKey key to use for topology constraint
	PmemDriverTopologyKey = ""
)

Functions

func GetPMEMDriver

func GetPMEMDriver(cfg Config) (*pmemDriver, error)

func Main added in v0.5.0

func Main() int

func NewIdentityServer

func NewIdentityServer(name, version string) (*identityServer, error)

func NewMasterControllerServer

func NewMasterControllerServer(rs *registryserver.RegistryServer) *masterController

func NewNodeControllerServer

func NewNodeControllerServer(nodeID string, dm pmdmanager.PmemDeviceManager, sm pmemstate.StateManager) *nodeControllerServer

func NewNodeServer

func NewNodeServer(cs *nodeControllerServer) *nodeServer

Types

type Config

type Config struct {
	//DriverName name of the csi driver
	DriverName string
	//NodeID node id on which this csi driver is running
	NodeID string
	//Endpoint exported csi driver endpoint
	Endpoint string
	//TestEndpoint adds the controller service to the server listening on Endpoint.
	//Only needed for testing.
	TestEndpoint bool
	//Mode mode fo the driver
	Mode DriverMode
	//RegistryEndpoint exported registry server endpoint
	RegistryEndpoint string
	//CAFile Root certificate authority certificate file
	CAFile string
	//CertFile certificate for server authentication
	CertFile string
	//KeyFile server private key file
	KeyFile string
	//ClientCertFile certificate for client side authentication
	ClientCertFile string
	//ClientKeyFile client private key
	ClientKeyFile string
	//ControllerEndpoint exported node controller endpoint
	ControllerEndpoint string
	//DeviceManager device manager to use
	DeviceManager string
	//Directory where to persist the node driver state
	StateBasePath string
	//Version driver release version
	Version string
}

Config type for driver configuration

type DefaultControllerServer

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

func (*DefaultControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements the default GRPC callout. Default supports all capabilities

func (*DefaultControllerServer) ControllerPublishVolume

func (*DefaultControllerServer) ControllerUnpublishVolume

func (*DefaultControllerServer) CreateSnapshot

func (*DefaultControllerServer) CreateVolume

func (*DefaultControllerServer) DeleteSnapshot

func (*DefaultControllerServer) DeleteVolume

func (*DefaultControllerServer) GetCapacity

func (*DefaultControllerServer) ListSnapshots

func (*DefaultControllerServer) ListVolumes

func (*DefaultControllerServer) ValidateControllerServiceRequest

func (cs *DefaultControllerServer) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error

type DriverMode

type DriverMode string
const (
	//Controller defintion for controller driver mode
	Controller DriverMode = "controller"
	//Node defintion for noder driver mode
	Node DriverMode = "node"
)

type NonBlockingGRPCServer

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

NonBlocking server

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() *NonBlockingGRPCServer

func (*NonBlockingGRPCServer) ForceStop

func (s *NonBlockingGRPCServer) ForceStop()

func (*NonBlockingGRPCServer) Start

func (s *NonBlockingGRPCServer) Start(endpoint string, tlsConfig *tls.Config, services ...PmemService) error

func (*NonBlockingGRPCServer) Stop

func (s *NonBlockingGRPCServer) Stop()

func (*NonBlockingGRPCServer) Wait

func (s *NonBlockingGRPCServer) Wait()

type PmemPersistencyModel

type PmemPersistencyModel string

type PmemService

type PmemService interface {
	// RegisterService will be called by NonBlockingGRPCServer whenever
	// its about to start a grpc server on an endpoint.
	RegisterService(s *grpc.Server)
}

type VolumeStatus

type VolumeStatus int

VolumeStatus type representation for volume status

const (
	//Created volume created
	Created VolumeStatus = iota + 1
	//Deleted volume deleted
	Deleted
)

Jump to

Keyboard shortcuts

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