driver

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeviceDirectory is a directory where TopoLVM Node service creates device files.
	DeviceDirectory = "/dev/topolvm"
)

Variables

This section is empty.

Functions

func NewControllerServer added in v0.18.1

func NewControllerServer(mgr manager.Manager) (csi.ControllerServer, error)

NewControllerServer returns a new ControllerServer.

func NewIdentityServer added in v0.18.1

func NewIdentityServer(ready func() (bool, error)) csi.IdentityServer

NewIdentityServer returns a new IdentityServer.

ready is a function to check the plugin status. It should return non-nil error if the plugin is not healthy. If the plugin is not yet ready, it should return (false, nil). Otherwise, return (true, nil).

func NewNodeServer added in v0.18.1

func NewNodeServer(nodeName string, vgServiceClient proto.VGServiceClient, lvServiceClient proto.LVServiceClient, mgr manager.Manager) (csi.NodeServer, error)

NewNodeServer returns a new NodeServer.

Types

type LockByID added in v0.18.1

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

LockByID is a mutex which takes lock with a given ID. If same id is given, only one process can take lock. If different id is given, each process can take lock separately.

func NewLockWithID added in v0.18.1

func NewLockWithID() *LockByID

func (*LockByID) LockByID added in v0.18.1

func (l *LockByID) LockByID(id string)

func (*LockByID) UnlockByID added in v0.18.1

func (l *LockByID) UnlockByID(id string)

Directories

Path Synopsis
internal
k8s

Jump to

Keyboard shortcuts

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