qtypes_inventory

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitUnixNano

func SplitUnixNano(t int64) (sec, nano int64)

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 NewBase added in v0.1.2

func NewBase(b qtypes_messages.Base, subject, action, object interface{}, tags map[string]string) (Base, error)

func NewBaseFromContainerEvent added in v0.1.1

func NewBaseFromContainerEvent(ce qtypes_docker_events.ContainerEvent) (Base, error)

func NewBaseFromJson

func NewBaseFromJson(qb qtypes_messages.Base, str string) (b Base, err error)

func NewEmptyBase added in v0.1.2

func NewEmptyBase(b qtypes_messages.Base) (Base, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL