handler

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: Apache-2.0 Imports: 18 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conplicity

type Conplicity struct {
	*docker.Client
	Config         *config.Config
	Hostname       string
	MetricsHandler *metrics.PrometheusMetrics
}

Conplicity is the main handler struct

func NewConplicity

func NewConplicity(version string) (*Conplicity, error)

NewConplicity returns a new Conplicity handler

func (*Conplicity) GetHostname

func (c *Conplicity) GetHostname() (err error)

GetHostname gets the host name

func (*Conplicity) GetVolumes

func (c *Conplicity) GetVolumes() (volumes []*volume.Volume, err error)

GetVolumes returns the Docker volumes, inspected and filtered

func (*Conplicity) LogTime

func (c *Conplicity) LogTime(vol *volume.Volume, event string) (err error)

LogTime adds a new metric even with the current time

func (*Conplicity) Setup

func (c *Conplicity) Setup(version string) (err error)

Setup sets up a Conplicity struct

func (*Conplicity) SetupDocker

func (c *Conplicity) SetupDocker() (err error)

SetupDocker for the client

func (*Conplicity) SetupMetrics

func (c *Conplicity) SetupMetrics() (err error)

SetupMetrics for the client

Jump to

Keyboard shortcuts

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