toolprovider

package
v0.0.0-...-a300be1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

README

CSI tool provider driver

Usage:

Build toolproviderplugin
$ make push
Start tool provider driver
$ sudo ./bin/toolproviderplugin --endpoint tcp://127.0.0.1:10000 --nodeid CSINode -v=6
Test using csc

Get csc tool from https://github.com/rexray/gocsi/tree/master/csc

Get plugin info
$ csc identity plugin-info --endpoint tcp://127.0.0.1:10000
"toolprovider.csi.katalogos.dev"  "0.1.0"
NodePublish a volume
$ csc node publish --endpoint tcp://127.0.0.1:10000 --cap 1,block --target-path /mnt/hostpath CSIVolumeID
CSIVolumeID
NodeUnpublish a volume
$ csc node unpublish --endpoint tcp://127.0.0.1:10000 --target-path /mnt/hostpath CSIVolumeID
CSIVolumeID
Get NodeInfo
$ csc node get-info --endpoint tcp://127.0.0.1:10000
CSINode

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics()

func NewControllerServer

func NewControllerServer(nodeID string) *controllerServer

func NewIdentityServer

func NewIdentityServer(name, version string) *identityServer

func NewNodeServer

func NewNodeServer(nodeID string, store *metadataStore) *nodeServer

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() *nonBlockingGRPCServer

func NewToolProviderDriver

func NewToolProviderDriver(driverName, nodeID, endpoint, version, imagesDirectory string, imChannel, gcChannel, ccChannel <-chan time.Time) (*toolProvider, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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