Documentation
¶
Index ¶
- Constants
- func CreateFileSystem(ctx context.Context, reqID string, accessibility *csi.TopologyRequirement, ...) (*csi.CreateVolumeResponse, error)
- func CreateNFSExport(ctx context.Context, reqID, symID, fsID string, ...) (*csi.ControllerPublishVolumeResponse, error)
- func DeleteFileSystem(ctx context.Context, symID, fileSystemID string, pmaxClient pmax.Pmax) error
- func DeleteNFSExport(ctx context.Context, reqID, symID, fsID string, pmaxClient pmax.Pmax) (*csi.ControllerUnpublishVolumeResponse, error)
- func ExpandFileSystem(ctx context.Context, reqID, symID, fsID string, requestedSize int64, ...) (*csi.ControllerExpandVolumeResponse, error)
- func PublishFileSystem(ctx context.Context, req *csi.NodePublishVolumeRequest, ...) (*csi.NodePublishVolumeResponse, error)
- func StageFileSystem(ctx context.Context, reqID, symID, fsID string, privTgt string, ...) (*csi.NodeStageVolumeResponse, error)
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 ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.