server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

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"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

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