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" )
Click to show internal directories.
Click to hide internal directories.