docker

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ClientAPIVersion = "1.18"

ClientAPIVersion Client API version used

Variables

This section is empty.

Functions

func MetadataDecoder

func MetadataDecoder(raw json.RawMessage) (common.Getter, error)

MetadataDecoder implements a json message raw decoder

Types

type Metadata

type Metadata struct {
	ContainerID   string
	ContainerName string
	Labels        graph.Metadata `field:"Metadata"`
}

Metadata describe the metadata of a docker container easyjson:json gendecoder

type ProbeHandler

type ProbeHandler struct {
	common.RWMutex
	Ctx tp.Context
	// contains filtered or unexported fields
}

ProbeHandler describes a Docker topology graph that enhance the graph

func (*ProbeHandler) Do

func (p *ProbeHandler) Do(ctx context.Context, wg *sync.WaitGroup) error

Do connects to the Docker daemon, registers the existing containers and start listening for Docker events

func (*ProbeHandler) Init

func (p *ProbeHandler) Init(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

Init initializes a new topology Docker probe

Jump to

Keyboard shortcuts

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