node

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeSafeFormatAndMounter

func NewFakeSafeFormatAndMounter(fakeMounter mount.Interface) *mount.SafeFormatAndMount

func NewSafeMounter

func NewSafeMounter() *mount.SafeFormatAndMount

Types

type FakeMetadataGetter

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

func NewFakeMetadataGetter

func NewFakeMetadataGetter(instID, zoneID string) *FakeMetadataGetter

func (*FakeMetadataGetter) InstanceID

func (f *FakeMetadataGetter) InstanceID() (string, error)

func (*FakeMetadataGetter) ZoneID

func (f *FakeMetadataGetter) ZoneID() (string, error)

type FakeVolumeStats

type FakeVolumeStats struct {
}

func (FakeVolumeStats) GetVolumeStats

func (f FakeVolumeStats) GetVolumeStats(s string) (bytesStats, inodeStats *VolStats, err error)

type FileXattrs

type FileXattrs interface {
	SetImmutable(target string) error
	UnsetImmutable(target string) error
}

type Options

type Options struct {
	MaxVolumesPerNode int
}

func DefaultOptions

func DefaultOptions() Options

type Service

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

func New

func New(mounter *mount.SafeFormatAndMount, hostUtil hostutil.HostUtils, volStat VolumeStats,
	fileXattrs FileXattrs, metadataGetter instancemeta.MetadataGetter, caps []*csi.NodeServiceCapability, opts Options) *Service

func NewTestNodeService

func NewTestNodeService(mounter mount.Interface, hostUtil hostutil.HostUtils, fileXattrs FileXattrs,
	mdGetter instancemeta.MetadataGetter, caps []*csi.NodeServiceCapability) *Service

func (*Service) NodeExpandVolume

func (*Service) NodeGetInfo

func (*Service) NodeGetVolumeStats

func (*Service) NodePublishVolume

func (*Service) NodeStageVolume

func (*Service) NodeUnpublishVolume

func (*Service) NodeUnstageVolume

type VolStats

type VolStats struct {
	Total     int64
	Used      int64
	Available int64
}

type VolumeStats

type VolumeStats interface {
	GetVolumeStats(string) (*VolStats, *VolStats, error)
}

Jump to

Keyboard shortcuts

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