services

package
v0.0.0-...-0535c67 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdentityService

func NewIdentityService(name string, version string, ready func() (bool, error)) csi.IdentityServer

NewIdentityService returns a new IdentityService.

ready is a function to check the plugin status. It should return non-nil error if the plugin is not healthy. If the plugin is not yet ready, it should return (false, nil). Otherwise, return (true, nil).

func NewNodeService

func NewNodeService(name string, nodeId string) csi.NodeServer

Types

type GrpcServer

type GrpcServer interface {
	// start the service
	Start()
	// Graceful shutdown
	Stop()
	// Forced shutdown
	ForceStop()
}

func NewGrpcServer

func NewGrpcServer(config GrpcServerConfig) GrpcServer

type GrpcServerConfig

type GrpcServerConfig struct {
	Endpoint   string
	IdServer   csi.IdentityServer
	NodeServer csi.NodeServer
}

type IdentityService

type IdentityService struct {
	csi.UnimplementedIdentityServer
	// contains filtered or unexported fields
}

IdentityService handles requests from the container orchestrator to determine readiness, capabilities, and identify the driver

func (IdentityService) GetPluginCapabilities

func (IdentityService) GetPluginInfo

func (IdentityService) Probe

type NodeService

type NodeService struct {
	csi.UnimplementedNodeServer
	// contains filtered or unexported fields
}

func (*NodeService) NodeGetCapabilities

func (*NodeService) NodeGetInfo

func (*NodeService) NodePublishVolume

func (*NodeService) NodeUnpublishVolume

type StatusService

type StatusService struct {
}

func NewStatusService

func NewStatusService() StatusService

func (StatusService) Ready

func (s StatusService) Ready() (bool, error)

Ready will check and validate that the driver is ready

if the driver is not ready an error will be reported explaining the cause of unready

Jump to

Keyboard shortcuts

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