qtypes_docker_events

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Apache-2.0 Imports: 6 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) ContainerToJSON

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

func (*ContainerEvent) GetContainerName

func (ce *ContainerEvent) GetContainerName() string

type DockerEvent

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

func NewDockerEvent

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

func (*DockerEvent) EventToJSON

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

type ServiceEvent

type ServiceEvent struct {
	DockerEvent
	Service swarm.Service
}

func NewServiceEvent

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

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