agent

package
v0.9.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 37 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.UnimplementedHealthServer
	AgentOptions
	// contains filtered or unexported fields
}

func New

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

func (*Agent) GetHealth

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

func (*Agent) GetKeyring

func (a *Agent) GetKeyring(ctx context.Context) (keyring.Keyring, error)

func (*Agent) GetTrustStrategy

func (a *Agent) GetTrustStrategy() trust.Strategy

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

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