agent

package
v0.0.0-...-ab50414 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 24 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 {
	// contains filtered or unexported fields
}

Agent is a controller that synchronizes Application resources

func NewAgent

func NewAgent(ctx context.Context, client kubernetes.Interface, appclient appclientset.Interface, namespace string, opts ...AgentOption) (*Agent, error)

NewAgent creates a new agent instance, using the given client interfaces and options.

func (*Agent) DefaultFilterChain

func (a *Agent) DefaultFilterChain() *filter.Chain

DefaultFilterChain returns a FilterChain with a set of default filters that the agent will evaluate for every change.

func (*Agent) IsConnected

func (a *Agent) IsConnected() bool

IsConnected returns whether the agent is connected to the principal

func (*Agent) SetConnected

func (a *Agent) SetConnected(connected bool)

SetConnected sets the connection state of the agent

func (*Agent) Start

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

func (*Agent) Stop

func (a *Agent) Stop() error

func (*Agent) WithLabelFilter

func (a *Agent) WithLabelFilter()

type AgentOption

type AgentOption func(*Agent) error

func WithAllowedNamespaces

func WithAllowedNamespaces(namespaces ...string) AgentOption

func WithMode

func WithMode(mode string) AgentOption

func WithRemote

func WithRemote(remote *client.Remote) AgentOption

type AgentOptions

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

AgentOptions defines the options for a given Controller

Jump to

Keyboard shortcuts

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