fs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	csi.UnimplementedNodeServer
	CrusoeClient      *crusoeapi.APIClient
	CrusoeHTTPClient  *http.Client
	HostInstance      *crusoeapi.InstanceV1Alpha5
	Mounter           *mount.SafeFormatAndMount
	Resizer           *mount.ResizeFs
	CrusoeAPIEndpoint string
	NFSRemotePorts    string
	NFSHost           string
	DiskType          common.DiskType
	PluginName        string
	PluginVersion     string
	Capabilities      []*csi.NodeServiceCapability
	MaxVolumesPerNode int64
}

func (*Node) NodeExpandVolume

NodeExpandVolume This function is currently unused. common.DiskTypeFS disks do not require expansion on the node. common.DiskTypeSSD disks would require expansion on the node if they supported online expansion.

func (*Node) NodeGetInfo

func (*Node) NodeGetVolumeStats

func (*Node) NodePublishVolume

func (d *Node) NodePublishVolume(ctx context.Context, request *csi.NodePublishVolumeRequest) (
	*csi.NodePublishVolumeResponse,
	error,
)

func (*Node) NodeStageVolume

func (*Node) NodeUnpublishVolume

func (d *Node) NodeUnpublishVolume(_ context.Context, request *csi.NodeUnpublishVolumeRequest) (
	*csi.NodeUnpublishVolumeResponse,
	error,
)

func (*Node) NodeUnstageVolume

type PublishFilesystem

type PublishFilesystem struct {
	Mounter        *mount.SafeFormatAndMount
	Resizer        *mount.ResizeFs
	Request        *csi.NodePublishVolumeRequest
	DevicePath     string
	NFSRemotePorts string
	NFSHost        string
	MountOpts      []string
	NFSEnabled     bool
}

func (*PublishFilesystem) Publish

func (p *PublishFilesystem) Publish() error

Jump to

Keyboard shortcuts

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