server

package
v0.0.0-...-718960f Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion gives the API version :)
	APIVersion = "0.0.1"

	// RetryAttempts is the number of times to retry a failed connection
	// attempt.
	RetryAttempts int = 3
)

Variables

This section is empty.

Functions

func NewICSCloudProviderClient

func NewICSCloudProviderClient(ctx context.Context) (pb.CloudProviderICSClient, error)

NewICSCloudProviderClient creates CloudProviderICSClient

Types

type GRPCServer

type GRPCServer interface {
	Start()
}

GRPCServer describes an object that can start a gRPC server.

func NewServer

func NewServer(binding string, nodeMgr NodeManagerInterface) GRPCServer

NewServer generates a new gRPC Server

type NodeManagerInterface

type NodeManagerInterface interface {
	GetNode(UUID string, node *pb.Node) error
	ExportNodes(icenter string, datacenter string, nodeList *[]*pb.Node) error
}

NodeManagerInterface describes types that can export a list of Kubernetes nodes into the supplied slice address.

Jump to

Keyboard shortcuts

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