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, appclient appclientset.Interface, namespace string, opts ...AgentOption) (*Agent, error)
NewAgent creates a new agent instance, using the given client interfaces and options.
func (*Agent) DefaultAppFilterChain ¶
func (a *Agent) DefaultAppFilterChain() *filter.Chain[*v1alpha1.Application]
DefaultAppFilterChain returns a FilterChain for Application resources. This chain contains a set of default filters that the agent will evaluate for every change.
func (*Agent) IsConnected ¶
IsConnected returns whether the agent is connected to the principal
func (*Agent) SetConnected ¶
SetConnected sets the connection state of the agent
func (*Agent) WithLabelFilter ¶
func (a *Agent) WithLabelFilter()
type AgentOption ¶
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
Click to show internal directories.
Click to hide internal directories.