docker

package
v0.0.0-...-1979335 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*client.Client, error)

FromContext gets the docker client out of the context. If not docker client is stored in the context, a nil is returned.

func NewHandler

func NewHandler(c *client.Client) func(http.Handler) http.Handler

NewHandler docker

func NewHealthCheck

func NewHealthCheck() func(ctx context.Context) bool

NewHealthCheck handle

func NewProxy

func NewProxy(host string) (*httputil.ReverseProxy, error)

New Docker proxy

Types

type DockerLog

type DockerLog struct {
	Type      string            `json:"Type"`
	Labels    map[string]string `json:"Labels"`
	Timestamp string            `json:"Timestamp"`
	IP        string            `json:"IP"`
	Message   string            `json:"Message"`
}

func ParseLog

func ParseLog(b []byte) (*DockerLog, error)

ParseLog of docker log

Jump to

Keyboard shortcuts

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