Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCgroupIDBanned = errors.New("cgroup id is banned") ErrCgroupIDNotContainer = errors.New("cgroup id is not container") )
Functions ¶
func IsSocketPresent ¶
func IsSocketPresent() bool
Types ¶
type ContainerInfo ¶ added in v0.1.0
ContainerInfo stores information about a container's associated pod.
type ContainerSha ¶ added in v0.1.0
type ContainerSha string
type ShaResolver ¶
type ShaResolver struct { // Channel for expired pods ExpiredPodChan chan string // contains filtered or unexported fields }
func NewShaResolver ¶
func NewShaResolver( logger *slog.Logger, expiredPodChan chan string, ) (*ShaResolver, error)
NewShaResolver creates a new ShaResolver instance.
func (*ShaResolver) Resolve ¶
func (r *ShaResolver) Resolve(inputSha string) (string, error)
Resolve returns the pod name associated with a given container SHA.
func (*ShaResolver) UpdateCache ¶
func (r *ShaResolver) UpdateCache() error
UpdateCache updates the cache with the latest pod and container information.
Click to show internal directories.
Click to hide internal directories.