Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RFC3339NanoFixed is Docker's version of RFC339Nano that pads the // nanoseconds with zeros to ensure that the timestamps are aligned in the logs. RFC3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogClock ¶
type LogClock struct{}
LogClock is an implementation of the Clock interface that returns time.Now() for use in the iolog package
type LogReader ¶
type LogReader struct { io.ReadCloser // contains filtered or unexported fields }
LogReader reads containerVM entries from a stream and decodes them into their original form
func NewLogReader ¶
func NewLogReader(r io.ReadCloser, ts bool) *LogReader
NewLogReader wraps an io.ReadCloser in a LogReader.
type LogWriter ¶
type LogWriter struct { Clock // contains filtered or unexported fields }
LogWriter tags log entries with a descriptive header and writes them to the underlying io.Writer
func NewLogWriter ¶
NewLogWriter wraps an io.WriteCloser in a LogWriter
Click to show internal directories.
Click to hide internal directories.