nas

package
v0.0.0-...-7dfd596 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDriverName = "nas.csi.volcengine.com"

	// TempMntPath used for create nas sub directory
	TempMntPath = "/mnt/ecs_mnt/k8s_nas/temp"

	// VolumeAs subpath or filesystem
	VolumeAs = "volumeAs"

	// MntRootPath used for create/delete volume sub directory
	MntRootPath = "/csi-persistentvolumes"

	// Nas Server
	SERVER = "server"

	// Nas FsID
	FSID = "fsId"

	// Nas SubPath
	SUBPATH = "subPath"

	// ArchiveOnDelete is a parameter in StorageClass which determines whether to archive
	ArchiveOnDelete = "archiveOnDelete"

	VCIInstanceRoleForVKE = "VCIInstanceRoleForVKE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerServer

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

ControllerServer controller server setting

func NewControllerServer

func NewControllerServer(driver *Driver) *ControllerServer

NewControllerServer new ControllerServer

func (*ControllerServer) ControllerGetVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

type Driver

type Driver struct {
	*csicommon.CSIDriver
	*openapi.Config
}

func NewDriver

func NewDriver(name, version, nodeId string, config *openapi.Config) *Driver

NewDriver create the identity/node/controller server and disk driver

func (*Driver) Run

func (d *Driver) Run(endpoint string)

type IdentityServer

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

IdentityServer driver

func NewIdentityServer

func NewIdentityServer(driver *Driver) *IdentityServer

NewIdentityServer new IdentityServer

func (*IdentityServer) GetPluginCapabilities

GetPluginCapabilities return the capabilities of the plugin

func (*IdentityServer) GetPluginInfo

GetPluginInfo return info of the plugin

func (*IdentityServer) Probe

Probe check whether the plugin is running or not.

type NodeServer

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

NodeServer driver

func NewNodeServer

func NewNodeServer(driver *Driver) *NodeServer

NewNodeServer new NodeServer

func (*NodeServer) NodeExpandVolume

NodeExpandVolume node expand volume

func (*NodeServer) NodeGetCapabilities

NodeGetCapabilities return the capabilities of the Node plugin

func (*NodeServer) NodeGetInfo

NodeGetInfo return info of the node on which this plugin is running

func (*NodeServer) NodeGetVolumeStats

NodeGetVolumeStats get volume stats

func (*NodeServer) NodePublishVolume

NodePublishVolume mount the volume

func (*NodeServer) NodeStageVolume

NodeStageVolume stage volume

func (*NodeServer) NodeUnpublishVolume

NodeUnpublishVolume unmount the volume

func (*NodeServer) NodeUnstageVolume

NodeUnstageVolume unstage volume

Jump to

Keyboard shortcuts

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