docker

package
v0.0.0-...-2e4375a Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerMetadataLength

func GetDockerMetadataLength(msg []byte) int

GetDockerMetadataLength returns the length of the 8 bytes header, timestamp, and space that is in front of each message.

Types

type Message

type Message struct {
	Content   []byte
	Status    string
	Timestamp string
}

Message represents a docker message

func ParseMessage

func ParseMessage(msg []byte) (Message, error)

ParseMessage extracts the date and the status from the raw docker message see https://godoc.org/github.com/moby/moby/client#Client.ContainerLogs

Jump to

Keyboard shortcuts

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