Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfigOption ¶
type LogConfigOption func(specificConfigOpts interface{}) error
LogConfigOption provides configuration options for the creation of new LogDriver instances.
type LogDriver ¶
type LogDriver interface { Type() LogDriverType WriteLogMessage(msg *LogMessage) error Close() error }
LogDriver represents any kind of log drivers, such as jsonfile, syslog.
type LogDriverInfo ¶
type LogDriverInfo struct { ContainerID string ContainerName string ContainerImageID string ContainerRootDir string DaemonName string }
LogDriverInfo provides container information for log driver.
type LogDriverType ¶
type LogDriverType string
LogDriverType represents the different driver types - it must be used as identification instead of a plain string
type LogHandler ¶
type LogHandler interface { // StartCopyToLogDriver starts to copy the streams data that will be logged. StartCopyToLogDriver() // Wait blocks until goroutines have finished. Wait() }
LogHandler is responsible for handling the streams data to be logged.
func NewLogHandler ¶
func NewLogHandler(destinationLogDriver LogDriver, sources map[string]io.Reader) LogHandler
NewLogHandler creates a new LogHandler
Click to show internal directories.
Click to hide internal directories.