Documentation
¶
Index ¶
- type Conplicity
- func (c *Conplicity) GetHostname() (err error)
- func (c *Conplicity) GetVolumes() (volumes []*volume.Volume, err error)
- func (c *Conplicity) LogTime(vol *volume.Volume, event string) (err error)
- func (c *Conplicity) Setup(version string) (err error)
- func (c *Conplicity) SetupDocker() (err error)
- func (c *Conplicity) SetupMetrics() (err error)
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
Click to show internal directories.
Click to hide internal directories.