container

package
v0.0.0-...-e3fb0e6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const DOCKER_API_VERSION = "1.25"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInput

type ContainerInput struct {
	// contains filtered or unexported fields
}

A ContainerInput listens for stdout and stderr of containers

func New

New returns an initialized ContainerInput

func (*ContainerInput) HumanReadableContainerId

func (c *ContainerInput) HumanReadableContainerId(containerId string) string

func (*ContainerInput) Start

func (c *ContainerInput) Start()

Start starts the ContainerInput

func (*ContainerInput) Stop

func (c *ContainerInput) Stop()

Stop stops the ContainerInput and its tailers

type DockerTailer

type DockerTailer struct {
	// contains filtered or unexported fields
}

DockerTailer tails logs coming from stdout and stderr of a docker container With docker api, there is no way to know if a log comes from strout or stderr so if we want to capture the severity, we need to tail both in two goroutines

func NewDockerTailer

func NewDockerTailer(cli *client.Client, container types.Container, source *config.IntegrationConfigLogSource, outputChan chan message.Message) *DockerTailer

NewDockerTailer returns a new DockerTailer

func (*DockerTailer) Identifier

func (dt *DockerTailer) Identifier() string

Identifier returns a string that uniquely identifies a source

func (*DockerTailer) Stop

func (dt *DockerTailer) Stop()

Stop stops the DockerTailer

Jump to

Keyboard shortcuts

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