Documentation ¶
Index ¶
- func Sha1HashString(s string) string
- type Base
- func (b *Base) AppendSource(src string)
- func (b *Base) GenDefaultID() string
- func (b *Base) GetLastSource() string
- func (b *Base) GetMessageDigest() string
- func (b *Base) GetTimeRFC() string
- func (b *Base) GetTimeUnix() int64
- func (b *Base) GetTimeUnixNano() int64
- func (b *Base) InputsMatch(inputs []string) bool
- func (b *Base) IsLastSource(src string) bool
- func (b *Base) StopProcessing(p *qtypes_plugin.Plugin, allowEmptyInput bool) bool
- func (b *Base) ToJSON() map[string]interface{}
- type ContainerMessage
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha1HashString ¶
Types ¶
type Base ¶
type Base struct { BaseVersion string ID string Time time.Time SourceID int SourcePath []string SourceSuccess bool Tags map[string]string // Additional KV }
func NewBaseFromBase ¶
func (*Base) AppendSource ¶
func (*Base) GenDefaultID ¶
GenDefaultID uses "<source>-<time.UnixNano()>" and does a sha1 hash.
func (*Base) GetLastSource ¶
func (*Base) GetMessageDigest ¶
func (*Base) GetTimeRFC ¶
func (*Base) GetTimeUnix ¶
func (*Base) GetTimeUnixNano ¶
func (*Base) InputsMatch ¶
func (*Base) IsLastSource ¶
func (*Base) StopProcessing ¶
type ContainerMessage ¶ added in v0.1.6
type ContainerMessage struct { Message Container types.ContainerJSON Engine types.Info // TODO: }
func NewContainerMessage ¶ added in v0.1.6
func NewContainerMessage(base Base, cnt *types.ContainerJSON, msg string) ContainerMessage
func (*ContainerMessage) AddEngineInfo ¶ added in v0.1.6
func (cm *ContainerMessage) AddEngineInfo(e *types.Info)
func (*ContainerMessage) GenContainerMsgID ¶ added in v0.1.6
func (c *ContainerMessage) GenContainerMsgID() string
GenContainerMsgID uses "<container_id>-<time.UnixNano()>-<MSG>" and does a sha1 hash.
func (*ContainerMessage) GetContainerName ¶ added in v0.1.6
func (c *ContainerMessage) GetContainerName() string
Click to show internal directories.
Click to hide internal directories.