cosidriver

package
v0.0.0-...-67d77dc Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEndpoint = "unix:///var/lib/cosi/cosi.sock"
)

Variables

This section is empty.

Functions

func Run

func Run(endpoint, driverName string, provisionerServer spec.ProvisionerServer) error

Run a COSI GRPC service. This sets up signal handlers for SIGINT and SIGTERM.

Types

type COSIGRPCServer

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

func RunNoSignals

func RunNoSignals(endpoint, driverName string, provisionerServer spec.ProvisionerServer) (*COSIGRPCServer, error)

Run a COSI GRPC service, without setting up any signal handlers.

func (*COSIGRPCServer) GracefulStop

func (s *COSIGRPCServer) GracefulStop()

func (*COSIGRPCServer) Stop

func (s *COSIGRPCServer) Stop()

func (*COSIGRPCServer) Wait

func (s *COSIGRPCServer) Wait()

Jump to

Keyboard shortcuts

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