package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Packages

# Functions

BuildConfig is a helper function that builds configs from a kubeconfig filepath.
ContainerID parses the container ID to get the actual ID string.
ContainerIDWithRuntime parses the container ID to get the actual ID string.
DiscoverKubernetesNode figures out the Kubernetes node to use.
GetKubernetesClient returns a kubernetes client.
InClusterNamespace gets namespace from serviceaccount when beat is in cluster.
IsInCluster takes a kubeconfig file path as input and deduces if Beats is running in cluster or not, taking into consideration the existence of KUBECONFIG variable.
NewInformer creates an informer for a given resource.
NewWatcher initializes the watcher client to provide a events handler for resource from the cluster (filtered to the given node).
Time extracts time from k8s.Time type.

# Constants

PodFailed phase.
PodPending phase.
PodRunning phase.
PodSucceeded phase.
PodUnknown phase.

# Structs

DefaultDiscoveryUtils implements functions of HostDiscoveryUtils interface.
DiscoverKubernetesNodeParams includes parameters for discovering kubernetes node.
FilteringResourceEventHandler applies the provided filter to all events coming in, ensuring the appropriate nested handler method is invoked.
NoOpEventHandlerFuncs ensures that watcher reconciliation can happen even without the required funcs.
ResourceEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing ResourceEventHandler.
WatchOptions controls watch behaviors.

# Interfaces

ResourceEventHandler can handle notifications for events that happen to a resource.
Watcher watches Kubernetes resources events.

# Type aliases

Container data.
ContainerPort data.
Deployment data.
Event data.
Job data.
Namespace data.
Node data.
ObjectMeta data.
Pod data.
PodContainerStatus data.
PodSpec data.
PodStatus data.
ReplicaSet data.
Resource data.
Service data.
StatefulSet data.