node

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDriveFinalizersWithConflictRetry added in v1.0.0

func AddDriveFinalizersWithConflictRetry(ctx context.Context, csiDriveName string, finalizers []string, crdVersion string) error

AddDriveFinalizersWithConflictRetry - appends a finalizer to the csidrive's finalizers list

func GetDiskFS added in v1.0.0

func GetDiskFS(devicePath string) (string, error)

GetDiskFS - To get the filesystem of a block sys.ce

func GetLatestStatus added in v1.0.0

func GetLatestStatus(statusXs []metav1.Condition) metav1.Condition

GetLatestStatus gets the latest condition by time

func RemoveDriveFinalizerWithConflictRetry added in v1.0.0

func RemoveDriveFinalizerWithConflictRetry(ctx context.Context, csiDriveName string, finalizer, crdVersion string) error

RemoveDriveFinalizerWithConflictRetry - removes a finalizer from the csidrive's finalizers list

Types

type NodeServer

type NodeServer struct {
	NodeID   string
	Identity string
	Rack     string
	Zone     string
	Region   string
	// contains filtered or unexported fields
}

NodeServer denotes node server.

func NewNodeServer

func NewNodeServer(ctx context.Context, identity, nodeID, rack, zone, region string, enableDynamicDiscovery bool) (*NodeServer, error)

NewNodeServer creates node server.

func (*NodeServer) NodeExpandVolume

NodeExpandVolume returns unimplemented error.

func (*NodeServer) NodeGetCapabilities

NodeGetCapabilities gets node capabilities.

func (*NodeServer) NodeGetInfo

NodeGetInfo gets node information.

func (*NodeServer) NodeGetVolumeStats

NodeGetVolumeStats gets node volume stats.

func (*NodeServer) NodePublishVolume

NodePublishVolume is node publish volume request handler.

func (*NodeServer) NodeStageVolume

NodeStageVolume is node stage volume request handler.

func (*NodeServer) NodeUnpublishVolume

NodeUnpublishVolume is node unpublish volume handler.

func (*NodeServer) NodeUnstageVolume

NodeUnstageVolume is node unstage volume request handler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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