# Packages

No description provided by the author
No description provided by the author

# 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.
GetContainersInPod returns all the containers defined in a pod and their statuses.
No description provided by the author
GetKubernetesClient returns a kubernetes client.
GetKubernetesMetadataClient returns a kubernetes metadata-only 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.
MicroTime extracts time from k8s.MicroTime type.
NewInformer creates an informer for a given resource.
NewMetadataInformer creates an informer for a given resource that only tracks the resource metadata.
NewMetadataWatcher initializes a metadata-only watcher client to provide an events handler for resource from the cluster (filtered to the given node).
NewNamedMetadataWatcher initializes a metadata-only watcher client to provide an events handler for resource from the cluster (filtered to the given node) and also allows to name the k8s client's workqueue that is used by the watcher.
NewNamedWatcher initializes the watcher client to provide an events handler for resource from the cluster (filtered to the given node) and also allows to name the k8s client's workqueue that is used by the watcher.
NewNamedWatcherWithInformer initializes the watcher client to provide an events handler for resource from the cluster (filtered to the given node) and also allows to name the k8s client's workqueue that is used by the watcher.
NewNamespacePodUpdater creates a namespacePodUpdater.
NewNodePodUpdater creates a nodePodUpdater.
NewWatcher initializes the watcher client to provide a events handler for resource from the cluster (filtered to the given node) Note: This watcher won't emit workqueue metrics.
PodAnnotations returns the annotations in a pod.
PodLabels returns the labels in a pod.
PodNamespaceAnnotations returns the annotations of the namespace of the pod.
PodTerminated returns true if a pod is terminated, this method considers a pod as terminated if none of its containers are running (or going to be running).
PodTerminating returns true if a pod is marked for deletion or is in a phase beyond running.
Time extracts time from k8s.Time type.

# Constants

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

# Structs

No description provided by the author
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.
No description provided by the author
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

No description provided by the author
ResourceEventHandler can handle notifications for events that happen to a resource.
Watcher watches Kubernetes resources events.

# Type aliases

ClusterRole data.
ClusterRoleBinding data.
Container data.
ContainerPort data.
CronJob data.
DaemonSet data.
Deployment data.
Event data.
Job data.
Namespace data.
NetworkPolicy data.
Node data.
ObjectMeta data.
PersistentVolume data.
PersistentVolumeClaim data.
Pod data.
PodContainerStatus data.
PodSpec data.
PodStatus data.
ReplicaSet data.
Resource data.
Role data.
RoleBinding data.
Service data.
ServiceAccount data.
StatefulSet data.
StorageClass data.