docker

package
v0.0.2-testing Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const ModuleID = "Docker"

ModuleID define the id of module

Variables

This section is empty.

Functions

func Flags

func Flags() *pflag.FlagSet

Flags set for Module

func New

func New(options map[string]string) model.Module

New constructor for Module

Types

type Module

type Module struct {
	Endpoint string
	Client   *docker.Client
	// contains filtered or unexported fields
}

Module retrieve information form executing sca

func (*Module) Event

func (d *Module) Event() <-chan string

Event return event chan

func (*Module) GetData

func (d *Module) GetData() interface{}

GetData export of current data of module

func (*Module) ID

func (d *Module) ID() string

ID id of module

type Response

type Response struct {
	Info       *docker.DockerInfo     `json:"Info,omitempty"`
	Containers []docker.APIContainers `json:"Containers,omitempty"`
	Images     []docker.APIImages     `json:"Images,omitempty"`
	Volumes    []docker.Volume        `json:"Volumes,omitempty"`
	Networks   []docker.Network       `json:"Networks,omitempty"`
}

Response describe docker informations

Jump to

Keyboard shortcuts

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