Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + const TimeFormat + var ErrReadLogsNotSupported = errors.New("configured logging reader does not support reading") + func RegisterLogDriver(name string, c Creator) error + func RegisterLogOptValidator(name string, l LogOptValidator) error + func ValidateLogOpts(name string, cfg map[string]string) error + type Context struct + Config map[string]string + ContainerArgs []string + ContainerCreated time.Time + ContainerEntrypoint string + ContainerEnv []string + ContainerID string + ContainerImageID string + ContainerImageName string + ContainerLabels map[string]string + ContainerName string + DaemonName string + LogPath string + func (ctx *Context) Command() string + func (ctx *Context) ExtraAttributes(keyMod func(string) string) map[string]string + func (ctx *Context) FullID() string + func (ctx *Context) Hostname() (string, error) + func (ctx *Context) ID() string + func (ctx *Context) ImageFullID() string + func (ctx *Context) ImageID() string + func (ctx *Context) ImageName() string + func (ctx *Context) Name() string + type Copier struct + func NewCopier(srcs map[string]io.Reader, dst Logger) *Copier + func (c *Copier) Close() + func (c *Copier) Run() + func (c *Copier) Wait() + type Creator func(Context) (Logger, error) + func GetLogDriver(name string) (Creator, error) + type LogAttributes map[string]string + func (a LogAttributes) String() string + type LogOptValidator func(cfg map[string]string) error + type LogReader interface + ReadLogs func(ReadConfig) *LogWatcher + type LogWatcher struct + Err chan error + Msg chan *Message + func NewLogWatcher() *LogWatcher + func (w *LogWatcher) Close() + func (w *LogWatcher) WatchClose() <-chan struct{} + type Logger interface + Close func() error + Log func(*Message) error + Name func() string + type Message struct + Attrs LogAttributes + Line []byte + Partial bool + Source string + Timestamp time.Time + func CopyMessage(msg *Message) *Message + type ReadConfig struct + Follow bool + Since time.Time + Tail int