driver

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNegativeRequestBytes = errors.New("required capacity must not be negative")
	ErrNoNegativeLimitBytes   = errors.New("capacity limit must not be negative")
	ErrRequestedExceedsLimit  = errors.New("requested capacity exceeds limit capacity")
	ErrResultingRequestIsZero = errors.New("requested capacity is 0")
)

Functions

func NewControllerServer

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

NewControllerServer returns a new ControllerServer.

func NewIdentityServer

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

func NewNodeServer(nodeName string, client lsm.Client, mgr manager.Manager) (csi.NodeServer, error)

NewNodeServer returns a new NodeServer.

Types

type LockByID

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

func NewLockWithID() *LockByID

func (*LockByID) LockByID

func (l *LockByID) LockByID(id string)

func (*LockByID) UnlockByID

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