cloudhub

package
v0.0.0-...-42d6b20 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSIResourceTypeVolume                     = "volume"
	CSIOperationTypeCreateVolume              = "createvolume"
	CSIOperationTypeDeleteVolume              = "deletevolume"
	CSIOperationTypeControllerPublishVolume   = "controllerpublishvolume"
	CSIOperationTypeControllerUnpublishVolume = "controllerunpublishvolume"
	CSISyncMsgRespTimeout                     = 1 * time.Minute

	CSIGroupResource    = "resource"
	CSINamespaceDefault = "default"
)

Constant defines csi related parameters

Variables

This section is empty.

Functions

func NewControllerServer

func NewControllerServer(ephemeral bool) *controllerServer

NewControllerServer creates controller server

func NewIdentityServer

func NewIdentityServer(name, version string) *identityServer

NewIdentityServer creates identity server

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() *nonBlockingGRPCServer

NewNonBlockingGRPCServer creates a new nonblocking server

Types

type CloudHub

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

func NewCloudHubDriver

func NewCloudHubDriver(driverName, nodeID, endpoint, version string, ephemeral bool) (*CloudHub, error)

NewCloudHubDriver creates a new cloudhub driver

func (*CloudHub) Run

func (hp *CloudHub) Run()

type UnixDomainSocket

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

UnixDomainSocket struct

func NewUnixDomainSocket

func NewUnixDomainSocket(filename string, size ...int) *UnixDomainSocket

NewUnixDomainSocket create new socket

func (*UnixDomainSocket) Connect

func (us *UnixDomainSocket) Connect() net.Conn

Connect connect for [Client]

func (*UnixDomainSocket) Send

func (us *UnixDomainSocket) Send(c net.Conn, context string) string

Send msg for [Client]

func (*UnixDomainSocket) SetContextHandler

func (us *UnixDomainSocket) SetContextHandler(f func(string) string)

SetContextHandler set handler for [Server]

func (*UnixDomainSocket) StartServer

func (us *UnixDomainSocket) StartServer()

StartServer start for [Server]

Jump to

Keyboard shortcuts

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