types

package
v0.0.0-...-291bdf5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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