Documentation
¶
Index ¶
- func SplitUnixNano(t int64) (sec, nano int64)
- type Base
- func NewBase(b qtypes_messages.Base, subject, action, object interface{}, ...) (Base, error)
- func NewBaseFromContainerEvent(ce qtypes_docker_events.ContainerEvent) (Base, error)
- func NewBaseFromJson(qb qtypes_messages.Base, str string) (b Base, err error)
- func NewEmptyBase(b qtypes_messages.Base) (Base, error)
- type ContainerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitUnixNano ¶
Types ¶
type Base ¶
type Base struct {
qtypes_messages.Base
Time time.Time
TimeUnixNano int64 `json:"time"`
Subject interface{} `json:"subject"` // Subject of what is going on (e.g. container)
Action interface{} `json:"action"`
Object interface{} `json:"object"` // Passive object
Tags map[string]string `json:"tags"` // Tags that should be applied to the action
}
func NewBaseFromContainerEvent ¶ added in v0.1.1
func NewBaseFromJson ¶
func NewEmptyBase ¶ added in v0.1.2
func (*Base) EnrichContainer ¶ added in v0.1.1
func (b *Base) EnrichContainer(ce qtypes_docker_events.ContainerEvent)
type ContainerEvent ¶ added in v0.1.1
type ContainerEvent struct {
Base
}
Click to show internal directories.
Click to hide internal directories.