message

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 3 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 ContainerStatus

type ContainerStatus struct {
	Signal   string
	ExitCode string
}

type EventsGroup

type EventsGroup struct {
	Container
	StartupInfo
	Events []Event
}

type Formatter

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

func NewFormatter

func NewFormatter(nodeName string) (*Formatter, error)

NewFormatter Initialize new formatter

func (*Formatter) EventPacker

func (f *Formatter) EventPacker(events []Event) map[string]EventsGroup

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

func (*Formatter) EventsToStr

func (f *Formatter) EventsToStr(eventsGroup EventsGroup) (string, bool)

EventsToStr Create a keybase message string for a group of container events

type MetaData

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

type Network

type Network struct {
	ID   string
	Name string
	Type string
}

type StartupInfo

type StartupInfo struct {
	DockerVersion string
	APIVersion    string
	Os            string
	KernelVersion 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