agents

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	// Start starts the logger.
	Start() error
}

Agent is the a running agent perform a specific task, e.g. redirect and decorate log, redirect stream etc.

type AgentFactory

type AgentFactory interface {
	// NewSandboxLogger creates a sandbox logging agent.
	NewSandboxLogger(io.ReadCloser) Agent
	// NewContainerLogger creates a container logging agent.
	NewContainerLogger(string, StreamType, io.ReadCloser) Agent
}

AgentFactory is the factory to create required agents.

func NewAgentFactory

func NewAgentFactory() AgentFactory

NewAgentFactory creates a new agent factory.

type StreamType

type StreamType string

StreamType is the type of the stream, stdout/stderr.

const (
	// Stdout stream type.
	Stdout StreamType = "stdout"
	// Stderr stream type.
	Stderr StreamType = "stderr"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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