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.