Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogFormatJSON = "json" LogFormatPlain = "plain" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Configurer interface { Name() string Start() error Stop() BootstrapCheck() (map[string]*InputConfigFile, error) OnAdd(ev *ContainerAddEvent) error OnDestroy(ev *ContainerDestroyEvent) error }
Configurer receive events from discovery and manage input configurations
type ContainerAddEvent ¶
ContainerAddEvent contains data for handling container update
type ContainerDestroyEvent ¶
ContainerDestroyEvent contains data for handling container delete
type InputConfigFile ¶
type LogConfig ¶
type LogConfig struct { Name string // LogFile is absolute path of the log file on host. LogFile string // Format defines log format. Format LogFormat // Tags are addtional informations that will be added to log record. // For example, pod informations, user defined tags. Tags map[string]string InOpts map[string]string Multiline *MultilineSetting IgnoreOlder string Stdout bool }
Click to show internal directories.
Click to hide internal directories.