agent

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 33 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) GetKeyring added in v0.5.4

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

func (*Agent) GetTrustStrategy added in v0.5.4

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

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
}

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