evs

package
v0.0.0-...-d214319 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PvcNameTag in annotations
	PvcNameTag = "csi.storage.k8s.io/pvc/name"
	// PvcNsTag in annotations
	PvcNsTag = "csi.storage.k8s.io/pvc/namespace"
	// PvNameKey key
	PvNameKey = "csi.storage.k8s.io/pv/name"

	// CsiClusterNodeIDKey in volume metadata
	CsiClusterNodeIDKey = "evs.csi.huaweicloud.com/nodeId"
	// CsiClusterNodeIDKey in volume metadata
	DssIDKey = "dedicated_storage_id"
	// CreateForVolumeIDKey in volume metadata
	CreateForVolumeIDKey = "create_for_volume_id"
	// HwPassthroughKey in volume metadata
	HwPassthroughKey = "hw:passthrough"
	CmkIDKey         = "__system__cmkid"
	EncryptedKey     = "__system__encrypted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerServer

type ControllerServer struct {
	Driver *EvsDriver
}

func (*ControllerServer) ControllerExpandVolume

func (*ControllerServer) ControllerGetCapabilities

ControllerGetCapabilities implements the default GRPC callout. Default supports all capabilities

func (*ControllerServer) ControllerGetVolume

func (*ControllerServer) ControllerPublishVolume

func (*ControllerServer) CreateSnapshot

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteSnapshot

func (*ControllerServer) DeleteVolume

func (*ControllerServer) GetCapacity

func (*ControllerServer) ListSnapshots

func (*ControllerServer) ListVolumes

type EvsDriver

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

func NewDriver

func NewDriver(cc *config.CloudCredentials, endpoint, cluster, nodeID string) *EvsDriver

func (*EvsDriver) AddControllerServiceCapabilities

func (d *EvsDriver) AddControllerServiceCapabilities(cl []csi.ControllerServiceCapability_RPC_Type)

func (*EvsDriver) AddNodeServiceCapabilities

func (d *EvsDriver) AddNodeServiceCapabilities(nl []csi.NodeServiceCapability_RPC_Type)

func (*EvsDriver) AddVolumeCapabilityAccessModes

func (d *EvsDriver) AddVolumeCapabilityAccessModes(vc []csi.VolumeCapability_AccessMode_Mode) []*csi.VolumeCapability_AccessMode

func (*EvsDriver) GetControllerServer

func (d *EvsDriver) GetControllerServer() *ControllerServer

func (*EvsDriver) GetVolumeCapabilityAccessModes

func (d *EvsDriver) GetVolumeCapabilityAccessModes() []*csi.VolumeCapability_AccessMode

func (*EvsDriver) Run

func (d *EvsDriver) Run()

func (*EvsDriver) SetupDriver

func (d *EvsDriver) SetupDriver(mount mounts.IMount, metadata metadatas.IMetadata)

func (*EvsDriver) ValidateControllerServiceRequest

func (d *EvsDriver) ValidateControllerServiceRequest(capType csi.ControllerServiceCapability_RPC_Type) error

type NonBlockingGRPCServer

type NonBlockingGRPCServer interface {
	// Start services at the endpoint
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
	// Waits for the service to stop
	Wait()
	// Stops the service gracefully
	Stop()
	// Stops the service forcefully
	ForceStop()
}

NonBlockingGRPCServer defines Non blocking GRPC server interfaces

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

type VolumeAttachmentStatus

type VolumeAttachmentStatus int32
const (
	VolumeNotAttached VolumeAttachmentStatus = iota + 1
	VolumeAttachingCurrentServer
	VolumeAttachingOtherServer
	VolumeAttachedCurrentServer
	VolumeAttachedOtherServer
	VolumeAttachError
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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