container

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLauncher

func NewLauncher(collectAll bool,
	kubernetesCollectFromFiles bool,
	dockerCollectFromFiles bool,
	dockerForceCollectFromFile bool,
	dockerReadTimeout time.Duration,
	sources *config.LogSources,
	services *service.Services,
	pipelineProvider pipeline.Provider,
	registry auditor.Registry) restart.Restartable

NewLauncher returns a new container launcher depending on the environment. By default returns a docker launcher if the docker socket is mounted and fallback to a kubernetes launcher if '/var/log/pods' is mounted ; this behaviour is reversed when kubernetesCollectFromFiles is enabled. If dockerCollectFromFiles is enabled the docker launcher will first attempt to tail containers from file instead of the docker socket if '/var/lib/docker/containers' is mounted. If none of those volumes are mounted, returns a lazy docker launcher with a retrier to handle the cases where docker is started after the agent. dockerReadTimeout is a configurable read timeout for the docker client.

func NewNoopLauncher

func NewNoopLauncher() restart.Restartable

NewNoopLauncher returns a new noopLauncher.

Types

This section is empty.

Jump to

Keyboard shortcuts

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