node

package
v0.0.0-...-0320a89 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxVolumesPerNode defines the maximum volumes per node.
	MaxVolumesPerNode int64 = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithDatacenter

func WithDatacenter(v string) Option

WithDatacenter provides a function to set the datacenter option.

func WithMount

func WithMount(v *mount.Service) Option

WithMount provides a function to set the mount option.

func WithResize

func WithResize(v *resize.Service) Option

WithResize provides a function to set the resize option.

func WithServer

func WithServer(v string) Option

WithServer provides a function to set the server option.

func WithVolume

func WithVolume(v *volume.Service) Option

WithVolume provides a function to set the volume option.

type Options

type Options struct {
	Server     string
	Datacenter string
	Volume     *volume.Service
	Mount      *mount.Service
	Resize     *resize.Service
}

Options defines the available options for this package.

type Service

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

Service defines the service for the node component.

func NewService

func NewService(opts ...Option) *Service

NewService simply initializes a new node service.

func (*Service) NodeExpandVolume

NodeExpandVolume implements the CSI standard definition.

func (*Service) NodeGetCapabilities

NodeGetCapabilities implements the CSI standard definition.

func (*Service) NodeGetInfo

func (s *Service) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

NodeGetInfo implements the CSI standard definition.

func (*Service) NodeGetVolumeStats

NodeGetVolumeStats implements the CSI standard definition.

func (*Service) NodePublishVolume

NodePublishVolume implements the CSI standard definition.

func (*Service) NodeStageVolume

NodeStageVolume implements the CSI standard definition.

func (*Service) NodeUnpublishVolume

NodeUnpublishVolume implements the CSI standard definition.

func (*Service) NodeUnstageVolume

NodeUnstageVolume implements the CSI standard definition.

Jump to

Keyboard shortcuts

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