file

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceLevelParam                    = "ServiceLevel"
	CapacityMiB                          = "CapacityMiB"
	MiBSizeInBytes                       = 1048576
	StoragePoolParam                     = "SRP"
	CSIPVCNamespace                      = "csi.storage.k8s.io/pvc/namespace"
	CSIPersistentVolumeName              = "csi.storage.k8s.io/pv/name"
	CSIPersistentVolumeClaimName         = "csi.storage.k8s.io/pvc/name"
	HeaderPersistentVolumeName           = "x-csi-pv-name"
	HeaderPersistentVolumeClaimName      = "x-csi-pv-claimname"
	HeaderPersistentVolumeClaimNamespace = "x-csi-pv-namespace"
	QueryNASServerID                     = "nas_server_id"
	QueryName                            = "name"
	AllowRootParam                       = "allowRoot"
	NASServerIDParam                     = "NASServerID"
	NASServerNameParam                   = "NASServerName"
	QueryFileSystemID                    = "file_system_id"
	NFSExportPathParam                   = "NFSExportPath"
	NFSExportIDParam                     = "NFSExportID"
)

These map to the above fields in the form of HTTP header names.

Variables

This section is empty.

Functions

func CreateFileSystem

func CreateFileSystem(ctx context.Context, reqID string, accessibility *csi.TopologyRequirement, params map[string]string, symID, storagePoolID, serviceLevel, nasServerName, fileSystemIdentifier, allowRoot string, sizeInMiB int64, pmaxClient pmax.Pmax) (*csi.CreateVolumeResponse, error)

CreateFileSystem creates a file system

func CreateNFSExport

func CreateNFSExport(ctx context.Context, reqID, symID, fsID string, am *csi.VolumeCapability_AccessMode, volumeContext map[string]string, pmaxClient pmax.Pmax) (*csi.ControllerPublishVolumeResponse, error)

CreateNFSExport creates a NFS export for the given file system

func DeleteFileSystem

func DeleteFileSystem(ctx context.Context, symID, fileSystemID string, pmaxClient pmax.Pmax) error

DeleteFileSystem deletes a file system

func DeleteNFSExport

func DeleteNFSExport(ctx context.Context, reqID, symID, fsID string, pmaxClient pmax.Pmax) (*csi.ControllerUnpublishVolumeResponse, error)

DeleteNFSExport deletes a NFS Export for the given file system

func ExpandFileSystem

func ExpandFileSystem(ctx context.Context, reqID, symID, fsID string, requestedSize int64, pmaxClient pmax.Pmax) (*csi.ControllerExpandVolumeResponse, error)

ExpandFileSystem expands the given file system on the array

func PublishFileSystem

func PublishFileSystem(ctx context.Context, req *csi.NodePublishVolumeRequest, reqID, symID, fsID string, pmaxClient pmax.Pmax) (*csi.NodePublishVolumeResponse, error)

PublishFileSystem bind the file system mount on the node

func StageFileSystem

func StageFileSystem(ctx context.Context, reqID, symID, fsID string, privTgt string, publishContext map[string]string, pmaxClient pmax.Pmax) (
	*csi.NodeStageVolumeResponse, error,
)

StageFileSystem creates a folder structure on the node

Types

This section is empty.

Jump to

Keyboard shortcuts

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