client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetGRPCClient() *grpc.ClientConn
	Probe() error
	GetDriverName() (string, error)
	HasControllerService() (bool, error)
}

Client is an interface that describes the methods which can be called on the client connection. This is mostly useful for (unit) testing where a client can not connect to a Kubernetes cluster.

func New

func New(address string, timeout time.Duration) (Client, error)

New creates and returns the GRPC client

Jump to

Keyboard shortcuts

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