Documentation ¶
Index ¶
Constants ¶
View Source
const ( DockerRuntime = "docker" ContainerDRuntime = "containerd" )
Variables ¶
This section is empty.
Functions ¶
func ExpandRuntimeAddresses ¶
func ExpandRuntimeAddresses(runtime config.ContainerRuntimeAddresses, hostRoot string) []string
ExpandRuntimeAddresses adds the host root to the socket addresses if PrefixHostRoot is true.
Types ¶
type RuntimeInterface ¶
type RuntimeInterface interface { CachedContainer(containerID string) (c facts.Container, found bool) ContainerLastKill(containerID string) time.Time Exec(ctx context.Context, containerID string, cmd []string) ([]byte, error) Containers(ctx context.Context, maxAge time.Duration, includeIgnored bool) (containers []facts.Container, err error) Events() <-chan facts.ContainerEvent IsRuntimeRunning(ctx context.Context) bool ProcessWithCache() facts.ContainerRuntimeProcessQuerier Run(ctx context.Context) error RuntimeFact(ctx context.Context, currentFact map[string]string) map[string]string LastUpdate() time.Time Metrics(ctx context.Context, now time.Time) ([]types.MetricPoint, error) MetricsMinute(ctx context.Context, now time.Time) ([]types.MetricPoint, error) IsContainerNameRecentlyDeleted(name string) bool DiagnosticArchive(ctx context.Context, archive types.ArchiveWriter) error ContainerExists(containerID string) bool }
RuntimeInterface is the interface that container runtime provide.
Click to show internal directories.
Click to hide internal directories.