server

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.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 NewVSphereCloudProviderClient added in v0.2.0

func NewVSphereCloudProviderClient(ctx context.Context) (pb.CloudProviderVsphereClient, error)

NewVSphereCloudProviderClient creates CloudProviderVsphereClient

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(vcenter 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