translator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

type Translator interface {
	// Translate translates one log line into types.KernelLog.
	Translate(string) (*types.KernelLog, error)
}

Translator translates a log line into types.KernelLog, so that kernel monitor could parse it whatever the original format is.

func NewDefaultTranslator

func NewDefaultTranslator() Translator

NewDefaultTranslator creates a default translator.

Jump to

Keyboard shortcuts

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