node

package
v0.0.0-...-f34f863 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVolumeNotReady   = errors.New("volume is not yet ready to be setup")
	ErrNoImplementation = errors.New("no implementation")
)

Functions

func Readonly

func Readonly(vc *csi.VolumeCapability) bool

Types

type Block

type Block interface {
	AttachBlock(ctx context.Context, volumeContext map[string]string, controllerContext map[string]string, secrets map[string]string) (string, error)
	DetachBlock(ctx context.Context, path string) error
}

type Expand

type Expand interface {
	Expand()
}

type Interface

type Interface interface {
}

type Mount

type Mount interface {
	Mount(ctx context.Context, path string, fstype string, volumeContext map[string]string, controllerContext map[string]string, secrets map[string]string) (*MountResponse, error)
}

type MountResponse

type MountResponse struct {
	Source           string
	Fstype           string
	Options          []string
	SensitiveOptions []string
	Format           bool
}

type Populate

type Populate interface {
	Populate(ctx context.Context, path string, volumeContext map[string]string, controllerContext map[string]string, secrets map[string]string) error
}

type Server

type Server struct {
	DeviceUtils   mountmanager.DeviceUtils
	VolumeStatter mountmanager.Statter
	// contains filtered or unexported fields
}

func New

func New(nodeID string, maxVolumesPerNode int64, manager Interface) (*Server, error)

func (*Server) NodeExpandVolume

func (ns *Server) NodeExpandVolume(ctx context.Context, request *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)

func (*Server) NodeGetCapabilities

func (ns *Server) NodeGetCapabilities(ctx context.Context, request *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)

func (*Server) NodeGetInfo

func (ns *Server) NodeGetInfo(ctx context.Context, request *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

func (*Server) NodeGetVolumeStats

func (ns *Server) NodeGetVolumeStats(ctx context.Context, request *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)

func (*Server) NodePublishVolume

func (*Server) NodeUnpublishVolume

type Validate

type Validate interface {
	ValidateCapability(vCap *csi.VolumeCapability) error
}

type Volume

type Volume struct {
	StagingPath   string
	PublishedPath string
}

type VolumeResponse

type VolumeResponse struct {
	Device string
	Mounts []struct {
		RelativePath     string
		Fstype           string
		Options          []string
		SensitiveOptions []string
	}
}

Jump to

Keyboard shortcuts

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