driver

package
v0.0.0-...-fb7ec14 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMode              = "unspecified"
	DefaultCSISocket         = "unix:///var/lib/csi/sockets/pluginproxy/csi.sock"
	DefaultNodeID            = ""
	DefaultRootDir           = "/"
	DefaultPluginDataDir     = "/"
	DefaultHandlersCount     = 1
	DefaultSanityTestRun     = false
	DefaultLogLevel          = 5
	DefaultEnforceNamespaces = true
)
View Source
var OrasLog bool // enable logging
View Source
var SanityTestRun bool // is this a test run?

I think this refers to csi-sanity https://github.com/kubernetes-csi/csi-test/blob/v4.4.0/cmd/csi-sanity/main.go

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, orasLog bool) error

Init primarily sets logging levels for TBA services

func StartService

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

Types

type IdentityService

type IdentityService struct {
	csi.UnimplementedIdentityServer
	Service
}

func (*IdentityService) GetPluginCapabilities

GetPluginCapabilities returns the message of what the csi provides

func (*IdentityService) GetPluginInfo

func (*IdentityService) Probe

Probe indicates that the plugin is in a healthy state

type NodeService

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

func NewNodeService

func NewNodeService(rootPath, pluginDataPath, nodeId string, handlersCount int, enforceNamespaces bool) (*NodeService, error)

NewNodeService creates the node service that runs on every node.

func (*NodeService) NodeExpandVolume

NodeExpandVolume not implemented

func (*NodeService) NodeGetCapabilities

func (*NodeService) NodeGetInfo

NodeGetInfo returns the nodeid

func (*NodeService) NodeGetVolumeStats

NodeGetVolumeStats not implemented

func (*NodeService) NodePublishVolume

func (*NodeService) NodeStageVolume

NodeStageVolume only exists to validate arguments

func (*NodeService) NodeUnpublishVolume

NodeUnpublishVolume removes the bind

func (*NodeService) NodeUnstageVolume

type Service

type Service interface{}

Jump to

Keyboard shortcuts

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