v2

package
v0.9.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRebootstrap = errors.New("re-bootstrap requested")

Functions

This section is empty.

Types

type Agent

type Agent struct {
	AgentOptions

	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func New

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

func (*Agent) ListenAddress

func (a *Agent) ListenAddress() string

func (*Agent) ListenAndServe

func (a *Agent) ListenAndServe(ctx context.Context) error

type AgentOption

type AgentOption func(*AgentOptions)

func WithBootstrapper

func WithBootstrapper(bootstrapper bootstrap.Bootstrapper) AgentOption

func WithRebootstrap

func WithRebootstrap(rebootstrap bool) AgentOption

func WithUnmanagedPluginLoader

func WithUnmanagedPluginLoader(pluginLoader *plugins.PluginLoader) AgentOption

type AgentOptions

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

Jump to

Keyboard shortcuts

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