containerutils

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package containerutils holds multiple utils functions around Container IDs and their patterns

Package containerutils groups multiple container utils function that can be used by the secl package

Index

Constants

This section is empty.

Variables

View Source
var ContainerIDPatternStr = ""

ContainerIDPatternStr defines the regexp used to match container IDs ([0-9a-fA-F]{64}) is standard container id used pretty much everywhere, length: 64 ([0-9a-fA-F]{32}-\d+) is container id used by AWS ECS, length: 43 ([0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){4}) is container id used by Garden, length: 28

Functions

This section is empty.

Types

type CGroupID

type CGroupID string

CGroupID represents a cgroup ID

type ContainerID

type ContainerID string

ContainerID represents a container ID

func FindContainerID

func FindContainerID(s CGroupID) ContainerID

FindContainerID extracts the first sub string that matches the pattern of a container ID along with the container flags induced from the container runtime prefix

type WorkloadID added in v0.72.0

type WorkloadID interface{}

WorkloadID represents a workload identifier that can be either a container ID or cgroup ID

Jump to

Keyboard shortcuts

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