metadata

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"endpoint-metadata",
	"Provides Kubernetes metadata for endpoints",

	cell.Provide(NewEndpointMetadataFetcher),
)

Cell provides the EndpointMetadataFetcher that provides k8s metadata for endpoints.

View Source
var ErrPodStoreOutdated = errors.New("pod store outdated")

Functions

This section is empty.

Types

type EndpointMetadataFetcher

type EndpointMetadataFetcher interface {
	FetchK8sMetadataForEndpoint(nsName, podName, uid string) (*slim_corev1.Pod, *endpoint.K8sMetadata, error)

	FetchK8sMetadataForEndpointFromPod(p *slim_corev1.Pod) (*endpoint.K8sMetadata, error)
}

func NewEndpointMetadataFetcher

func NewEndpointMetadataFetcher(logger *slog.Logger, config *option.DaemonConfig, db *statedb.DB, pods statedb.Table[daemonk8s.LocalPod], namespaces statedb.Table[daemonk8s.Namespace]) EndpointMetadataFetcher

Jump to

Keyboard shortcuts

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