Documentation ¶
Overview ¶
Package agent provides the implementation of the in-cluster agent that reacts to resource changes and sends data to an event bus.
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
}
The Agent type is responsible for handling changes in resources within a cluster namespace and sending them to a configured EventWriter.
type Config ¶
type Config struct { // The Namespace that resources will be collected for. Namespace string // The EventWriter is used to publish events onto an arbitrary event stream. EventWriter EventWriter // The configuration for the cluster. ClusterClient dynamic.Interface // The resource types to send via the EventWriter. Resources []schema.GroupVersionResource // If true, no events are published until the initial informer caches are synced. This prevents events being // publishing describing the current state. WaitForCacheSync bool // The unique name for the cluster the agent is running in ClusterID string }
The Config type describes configuration values that can be set for the Agent.
Click to show internal directories.
Click to hide internal directories.