package agents

import "github.com/containerd/cri/pkg/server/agents"

Index

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

PathSynopsis
pkg/server/agents/testing
Version
v0.1.0
Published
Jun 29, 2017
Platform
js/wasm
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.