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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
)

Source Files

  • agents.go
  • logger.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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