nfdclient

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeName

func NodeName() string

NodeName returns the name of the k8s node we're running on.

Types

type Args

type Args struct {
	CaFile             string
	CertFile           string
	KeyFile            string
	Server             string
	ServerNameOverride string

	Klog map[string]*utils.KlogFlagVal
}

Args holds the common command line arguments for all nfd clients.

type NfdBaseClient

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

NfdBaseClient is a common base type for handling connections to nfd-master.

func NewNfdBaseClient

func NewNfdBaseClient(args *Args) (NfdBaseClient, error)

NewNfdBaseClient creates a new NfdBaseClient instance.

func (*NfdBaseClient) ClientConn

func (w *NfdBaseClient) ClientConn() *grpc.ClientConn

ClientConn returns the grpc ClientConn object.

func (*NfdBaseClient) Connect

func (w *NfdBaseClient) Connect() error

Connect creates a gRPC client connection to nfd-master.

func (*NfdBaseClient) Disconnect

func (w *NfdBaseClient) Disconnect()

Disconnect closes the connection to NFD master

type NfdClient

type NfdClient interface {
	Run() error
	Stop()
}

NfdClient defines a common interface for NFD clients.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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