Help us shape the future of Go! Take the 2026 Go Developer Survey

metadata

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 14 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