Documentation ¶
Overview ¶
Package driver implements gRPC server for handling requests to the COSI driver as specified by COSI specification.
Index ¶
Constants ¶
View Source
const (
// COSISocket is a default location of COSI API UNIX socket.
COSISocket = "/var/lib/cosi/cosi.sock"
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, config *config.ConfigSchemaJson, socket, name string) (<-chan struct{}, error)
Run starts the gRPC server for the identity and provisioner servers. This function will not block and instead will provide channel for checking when the driver is ready. Await for context if you want the thread you are running this in to block.
func RunBlocking ¶
RunBlocking is a blocking version of Run.
Types ¶
Click to show internal directories.
Click to hide internal directories.