qframe-collector-docker-events

command module
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

qframe-collector-docker-events

qframe collector to subscribe to docker-events

main.go

To test the plugin a main function will start the plugin and wait for a msg on the Data channel.

$ go run main.go
  2017/04/21 13:35:51 [II] Dispatch broadcast for Data and Tick
  2017/04/21 13:35:51 [  INFO] test >> Connected to 'moby' / v'17.05.0-ce-rc1'
  #### Received: Cnt1492781754: container.create

The receive was triggered by:

$ docker run --rm --name Cnt$(date +%s) ubuntu:latest sleep 1

Development

$ docker run -ti --name qframe-collector-docker-events --rm -e SKIP_ENTRYPOINTS=1 \
                -v ${GOPATH}/src/github.com/qnib/qframe-collector-docker-events:/usr/local/src/github.com/qnib/qframe-collector-docker-events \
                -v ${GOPATH}/src/github.com/qnib/qframe-types:/usr/local/src/github.com/qnib/qframe-types \
                -v ${GOPATH}/src/github.com/qnib/qframe-utils:/usr/local/src/github.com/qnib/qframe-utils \
                -v ${GOPATH}/src/github.com/qnib/qframe-filter-inventory/lib:/usr/local/src/github.com/qnib/qframe-filter-inventory/lib \
                -v ${GOPATH}/src/github.com/qnib/qframe-inventory/lib:/usr/local/src/github.com/qnib/qframe-inventory/lib \
                -v /var/run/docker.sock:/var/run/docker.sock \
                -w /usr/local/src/github.com/qnib/qframe-collector-docker-events \
                qnib/uplain-golang bash
> execute CMD 'bash'
$ govendor update github.com/qnib/qframe-types github.com/qnib/qframe-utils github.com/qnib/qframe-inventory/lib \
                  github.com/qnib/qframe-filter-inventory/lib github.com/qnib/qframe-collector-docker-events/lib
$ govendor fetch +m
$ go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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