Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByContainerID ¶ added in v1.1.2
type ByContainerID []dockerclient.Container
custom sort for containers
func (ByContainerID) Len ¶ added in v1.1.2
func (a ByContainerID) Len() int
func (ByContainerID) Less ¶ added in v1.1.2
func (a ByContainerID) Less(i, j int) bool
func (ByContainerID) Swap ¶ added in v1.1.2
func (a ByContainerID) Swap(i, j int)
type Metrics ¶
type Metrics struct { EventsProcessed prometheus.Counter LastReloadDuration prometheus.Gauge Uptime prometheus.Counter }
func NewMetrics ¶
func NewMetrics() *Metrics
type Node ¶
type Node struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Addr string `json:"addr,omitempty"` Containers string `json:"containers,omitempty"` ReservedCPUs string `json:"reserved_cpus,omitempty"` ReservedMemory string `json:"reserved_memory,omitempty"` Labels []string `json:"labels,omitempty"` }
Click to show internal directories.
Click to hide internal directories.