driver

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const RFC3339MilliNoZ = "2006-01-02T15:04:05.999999"

Variables

This section is empty.

Functions

func GetAttachmentDiskPath

func GetAttachmentDiskPath(ctx context.Context, client *gobizfly.Client, serverID string, volumeID string) (string, error)

GetAttachmentDiskPath gets disk path in a server

func GetSnapshotByNameAndVolumeID

func GetSnapshotByNameAndVolumeID(ctx context.Context, client *gobizfly.Client, volumeId string, name string) ([]*gobizfly.Snapshot, error)

func GetVolumesByName

func GetVolumesByName(ctx context.Context, client *gobizfly.Client, name string) (*gobizfly.Volume, error)

GetVolumesByName gets volumes by name of volume

func NewControllerServer

func NewControllerServer(d *VolumeDriver, client *gobizfly.Client) *controllerServer

func NewIdentityServer

func NewIdentityServer(d *VolumeDriver) *identityServer

func NewNodeServer

func NewNodeServer(d *VolumeDriver, mount mount.IMount, metadata metadata.IMetadata) *nodeServer

func ParseEndpoint

func ParseEndpoint(ep string) (string, string, error)

func RunControllerAndNodePublishServer

func RunControllerAndNodePublishServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)

RunControllerAndNodePublishServer run controller

func WaitDiskAttached

func WaitDiskAttached(ctx context.Context, client *gobizfly.Client, serverId string, volumeID string) error

func WaitDiskDetached

func WaitDiskDetached(ctx context.Context, client *gobizfly.Client, serverId string, volumeID string) error

WaitDiskDetached waits for detached

func WaitSnapshotReady

func WaitSnapshotReady(ctx context.Context, client *gobizfly.Client, snapshotID string) error

Types

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 VolumeDriver

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

func NewDriver

func NewDriver(endpoint, cluster string) *VolumeDriver

NewDriver create new driver

func (*VolumeDriver) AddControllerServiceCapabilities

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

AddControllerServiceCapabilities add capabilities for driver

func (*VolumeDriver) AddNodeServiceCapabilities

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

AddNodeServiceCapabilities add node service capabilities

func (*VolumeDriver) AddVolumeCapabilityAccessModes

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

AddVolumeCapabilityAccessModes add access mode capability for volume driver

func (*VolumeDriver) Run

func (d *VolumeDriver) Run()

Run run driver

func (*VolumeDriver) SetupControlDriver

func (d *VolumeDriver) SetupControlDriver(client *gobizfly.Client, mount mount.IMount, metadata metadata.IMetadata)

SetupControlDriver setups driver for control plane

func (*VolumeDriver) SetupNodeDriver

func (d *VolumeDriver) SetupNodeDriver(mount mount.IMount, metadata metadata.IMetadata)

SetupControlDriver setups driver for control plane

Jump to

Keyboard shortcuts

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