Versions in this module Expand all Collapse all v0 v0.0.1 Aug 14, 2023 Changes in this version + const ContainerNameLabel + const ContainerTypeContainerdLabel + const ContainerTypeCrioAnnotation + const ContainerTypeDockerLabel + const PodNameLabel + const PodNamespaceLabel + const PodUIDLabel + type ContainerEnricher interface + Get func(ctx context.Context, containerId string) (ContainerMetadata, error) + func ContainerdEnricher(socket string) (ContainerEnricher, error) + func CrioEnricher(socket string) (ContainerEnricher, error) + func DockerEnricher(socket string) (ContainerEnricher, error) + type ContainerMetadata struct + ContainerId string + Image string + ImageDigest string + Name string + Pod PodMetadata + type PodMetadata struct + Name string + Namespace string + Sandbox bool + UID string + type RuntimeId int + const Containerd + const Crio + const Docker + const Podman + const Unknown + func FromString(str string) RuntimeId + func (runtime RuntimeId) String() string + type Sockets struct + func Autodiscover(onRegisterFail func(err error, runtime RuntimeId, socket string)) Sockets + func (s *Sockets) Register(runtime RuntimeId, socket string) error + func (s *Sockets) Socket(runtime RuntimeId) string + func (s *Sockets) Supports(runtime RuntimeId) bool