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 ¶
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 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