qtypes_docker_events

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: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerEvent

type ContainerEvent struct {
	DockerEvent
	Container types.ContainerJSON
}

func NewContainerEvent

func NewContainerEvent(de DockerEvent, cnt types.ContainerJSON) ContainerEvent

func (*ContainerEvent) ContainerToFlatJSON added in v0.1.9

func (ce *ContainerEvent) ContainerToFlatJSON() (res map[string]interface{})

ContainerToFlatJSON create a key/val JSON map, which can be consumed by KSQL.

func (*ContainerEvent) ContainerToJSON

func (ce *ContainerEvent) ContainerToJSON() map[string]interface{}

ContainerToJSON create a nested JSON object.

func (*ContainerEvent) GetContainerName

func (ce *ContainerEvent) GetContainerName() string

type DockerEvent

type DockerEvent struct {
	qtypes_messages.Base
	Message string
	Event   events.Message
	Engine  types.Info
}

func NewDockerEvent

func NewDockerEvent(base qtypes_messages.Base, eInfo types.Info, event events.Message) DockerEvent

func (*DockerEvent) EngineFlatJSON added in v0.1.9

func (de *DockerEvent) EngineFlatJSON() (res map[string]interface{})

func (*DockerEvent) EventToFlatJSON added in v0.1.9

func (de *DockerEvent) EventToFlatJSON() (res map[string]interface{})

func (*DockerEvent) EventToJSON

func (de *DockerEvent) EventToJSON() (res map[string]interface{})

func (*DockerEvent) SwarmNodeToFlatJSON added in v0.1.9

func (de *DockerEvent) SwarmNodeToFlatJSON() (res map[string]interface{})

type NetworkEvent added in v0.1.10

type NetworkEvent struct {
	DockerEvent
	Network types.NetworkResource
}

func NewNetworkEvent added in v0.1.10

func NewNetworkEvent(de DockerEvent, net types.NetworkResource) NetworkEvent

func (*NetworkEvent) GetNetworkName added in v0.1.10

func (e *NetworkEvent) GetNetworkName() string

func (*NetworkEvent) NetworkToFlatJSON added in v0.1.10

func (e *NetworkEvent) NetworkToFlatJSON() (res map[string]interface{})

NetworkToFlatJSON create a key/val JSON map, which can be consumed by KSQL.

func (*NetworkEvent) NetworkToJSON added in v0.1.10

func (e *NetworkEvent) NetworkToJSON() map[string]interface{}

NetworkToJSON create a nested JSON object.

type ServiceEvent

type ServiceEvent struct {
	DockerEvent
	Service swarm.Service
}

func NewServiceEvent

func NewServiceEvent(de DockerEvent, srv swarm.Service) ServiceEvent

func (*ServiceEvent) ServiceEventToFlatJSON added in v0.1.9

func (se *ServiceEvent) ServiceEventToFlatJSON() map[string]interface{}

func (*ServiceEvent) ServiceToFlatJSON added in v0.1.9

func (se *ServiceEvent) ServiceToFlatJSON() map[string]interface{}

func (*ServiceEvent) ServiceToJSON

func (se *ServiceEvent) ServiceToJSON() map[string]interface{}

Jump to

Keyboard shortcuts

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