Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMessage ¶
type LogMessage struct { Source string // Source means stdin, stdout or stderr Line []byte // Line means the log content, but it maybe partial Timestamp time.Time // Timestamp means the created time of line Err error }
LogMessage represents the log message in the container json log.
type LogWatcher ¶
type LogWatcher struct { Msgs chan *LogMessage Err chan error // contains filtered or unexported fields }
LogWatcher is used to pass the log message to the reader.
func (*LogWatcher) WatchClose ¶
func (w *LogWatcher) WatchClose() <-chan struct{}
WatchClose returns the close notifier.
Click to show internal directories.
Click to hide internal directories.