dfuse

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEndpoint

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

Types

type Config

type Config struct {
	DriverName string
	Version    string
	Endpoint   string
	NodeID     string
}

type ControllerServer

type ControllerServer struct {
	Driver *Driver
}

func NewControllerServer

func NewControllerServer(d *Driver) *ControllerServer

type Dfuse

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

type Driver

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

func NewDfuseDriver

func NewDfuseDriver(cfg Config) *Driver

func (*Driver) Run

func (d *Driver) Run()

type IdentityServer

type IdentityServer struct {
	Driver *Driver
}

func NewDefaultIdentityServer

func NewDefaultIdentityServer(d *Driver) *IdentityServer

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

Probe check whether the plugin is running or not. This method does not need to return anything. Currently the spec does not dictate what you should return either. Hence, return an empty response

type NodeMount

type NodeMount struct {
	PoolID string
	ContID string
}

type NodeServer

type NodeServer struct {
	Driver *Driver
	Mounts map[string]NodeMount
}

func NewNodeServer

func NewNodeServer(d *Driver) *NodeServer

func (*NodeServer) NodeExpandVolume

func (*NodeServer) NodeGetCapabilities

NodeGetCapabilities return the capabilities of the Node plugin XXX Must be implemented

func (*NodeServer) NodeGetInfo

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

func (*NodeServer) NodeGetVolumeStats

func (*NodeServer) NodePublishVolume

func (*NodeServer) NodeStageVolume

func (*NodeServer) NodeUnpublishVolume

NodeUnpublishVolume unmount the volume

func (*NodeServer) NodeUnstageVolume

type NonBlockingGRPCServer

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

Defines Non blocking GRPC server interfaces

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

type VolumeLocks

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

func NewVolumeLocks

func NewVolumeLocks() *VolumeLocks

func (*VolumeLocks) Release

func (vl *VolumeLocks) Release(volumeID string)

func (*VolumeLocks) TryAcquire

func (vl *VolumeLocks) TryAcquire(volumeID string) bool

Jump to

Keyboard shortcuts

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