container

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: 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, collectFromFiles 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 collectFromFiles is enabled. 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