agent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func New

func New(ctx context.Context, conf *v1beta1.AgentConfig, opts ...AgentOption) (*Agent, 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
}

func (*AgentOptions) Apply

func (o *AgentOptions) Apply(opts ...AgentOption)

Jump to

Keyboard shortcuts

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