agent

package
v0.5.4-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	controlv1.UnsafeAgentControlServer
	AgentOptions
	v1beta1.AgentConfigSpec
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, conf *v1beta1.AgentConfig, opts ...AgentOption) (*Agent, error)

func (*Agent) GetHealth added in v0.5.4

func (a *Agent) GetHealth(context.Context, *emptypb.Empty) (*corev1.Health, error)

func (*Agent) ListenAndServe

func (a *Agent) ListenAndServe() error

func (*Agent) Shutdown

func (a *Agent) Shutdown() error

type AgentOption

type AgentOption func(*AgentOptions)

func WithBootstrapper

func WithBootstrapper(bootstrapper bootstrap.Bootstrapper) AgentOption

type AgentOptions

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

type ClientSet added in v0.5.4

type ClientSet interface {
	controlv1.AgentControlClient
}

func NewClientSet added in v0.5.4

func NewClientSet(cc grpc.ClientConnInterface) ClientSet

Jump to

Keyboard shortcuts

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