Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogClient ¶ added in v1.1.0
type LogClient interface {
Logs(docker.LogsOptions) error
}
LogClient wraps DockerClient with the minimal interface
type LogStreamer ¶
type LogStreamer struct { DockerClient LogClient ContainerID string ContainerName string LogWriter io.WriteCloser ErrWriter io.WriteCloser // contains filtered or unexported fields }
LogStreamer connects and activates container's log stream with io.Writer
func (*LogStreamer) Go ¶
func (l *LogStreamer) Go(ctx context.Context) *LogStreamer
Go activates streamer
type MultiWriter ¶
type MultiWriter struct {
// contains filtered or unexported fields
}
MultiWriter implements WriteCloser for multiple destinations. It is simplified version of stdlib MultiWriter. Ignores write error and don't stop the loop unless all writes failed.
func NewMultiWriterIgnoreErrors ¶
func NewMultiWriterIgnoreErrors(writers ...io.WriteCloser) *MultiWriter
NewMultiWriterIgnoreErrors create WriteCloser for multiple destinations
func (*MultiWriter) WithExtJSON ¶
func (w *MultiWriter) WithExtJSON(containerName string, group string) *MultiWriter
WithExtJSON turn JSON output mode on
Click to show internal directories.
Click to hide internal directories.