message

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID    string
	Name  string
	Image string
}

func (Container) IsEmpty

func (c Container) IsEmpty() bool

type ContainerEventsGroup

type ContainerEventsGroup struct {
	Container
	StartupInfo
	Group
	Events []Event
}

type ContainerStatus

type ContainerStatus struct {
	Signal   string
	ExitCode string
}

type DockerComposeInfo

type DockerComposeInfo struct {
	ComposeProject string
	ComposeService string
}

type Group

type Group struct {
	NodeName string
	DockerComposeInfo
	SwarmInfo
}

type MetaData

type MetaData struct {
	Type   string
	Action string
	Time   time.Time
}

type Network

type Network struct {
	ID   string
	Name string
	Type string
}

type Packer

type Packer struct {
	// contains filtered or unexported fields
}

func New

func New(nodeName string) (*Packer, error)

New Initialize new formatter

func (*Packer) EventPacker

func (p *Packer) EventPacker(events []Event) map[string]ContainerEventsGroup

EventPacker Receive a list of docker events and group them by container id

type StartupInfo

type StartupInfo struct {
	DockerVersion string
	APIVersion    string
	Os            string
	KernelVersion string
	AppVersion    string
	AppBuiltDate  string
}

type SwarmInfo

type SwarmInfo struct {
	StackNameSpace   string
	SwarmServiceName string
}

type Volume

type Volume struct {
	ID          string
	Destination string
	Propagation string
}

Jump to

Keyboard shortcuts

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