driver

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package driver provides the implementation of the CSI plugin.

It contains the gRPC server implementation of CSI specification.

Index

Constants

View Source
const (
	ZoneKey = "topology." + DriverName + "/zone"
	HostKey = "topology." + DriverName + "/host"
)

Topology keys

View Source
const (
	DiskOfferingKey = DriverName + "/disk-offering-id"
)

Volume parameters keys

View Source
const DriverName = "csi.cloudstack.apache.org"

DriverName is the name of the CSI plugin

Variables

This section is empty.

Functions

func NewControllerServer

func NewControllerServer(connector cloud.Interface) csi.ControllerServer

NewControllerServer creates a new Controller gRPC server.

func NewIdentityServer

func NewIdentityServer(version string) csi.IdentityServer

NewIdentityServer creates a new Identity gRPC server.

func NewNodeServer

func NewNodeServer(connector cloud.Interface, mounter mount.Interface, nodeName string) csi.NodeServer

NewNodeServer creates a new Node gRPC server.

Types

type Interface

type Interface interface {
	// Run the CSI driver gRPC server
	Run() error
}

Interface is the CloudStack CSI driver interface.

func New

func New(endpoint string, csConnector cloud.Interface, mounter mount.Interface, nodeName string, version string, logger *zap.Logger) (Interface, error)

New instantiates a new CloudStack CSI driver

type Topology

type Topology struct {
	ZoneID string
	HostID string
}

Topology represents CloudStack storage topology.

func NewTopology

func NewTopology(t *csi.Topology) (Topology, error)

NewTopology converts a *csi.Topology to Topology.

func (Topology) ToCSI

func (t Topology) ToCSI() *csi.Topology

ToCSI converts a Topology to a *csi.Topology.

Jump to

Keyboard shortcuts

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