Versions in this module Expand all Collapse all v0 v0.7.1 Dec 20, 2017 Changes in this version + type AllocBroadcaster struct + func NewAllocBroadcaster(n int) *AllocBroadcaster + func (b *AllocBroadcaster) Close() + func (b *AllocBroadcaster) Listen() *AllocListener + func (b *AllocBroadcaster) Send(v *structs.Allocation) bool + type AllocListener struct + Ch <-chan *structs.Allocation + func (l *AllocListener) Close() + type AllocResourceUsage struct + ResourceUsage *ResourceUsage + Tasks map[string]*TaskResourceUsage + Timestamp int64 + type CpuStats struct + Measured []string + Percent float64 + SystemMode float64 + ThrottledPeriods uint64 + ThrottledTime uint64 + TotalTicks float64 + UserMode float64 + func (cs *CpuStats) Add(other *CpuStats) + type DriverNetwork struct + AutoAdvertise bool + IP string + PortMap map[string]int + func (d *DriverNetwork) Advertise() bool + func (d *DriverNetwork) Copy() *DriverNetwork + func (d *DriverNetwork) Hash() []byte + type FSIsolation int + const FSIsolationChroot + const FSIsolationImage + const FSIsolationNone + func (f FSIsolation) String() string + type MemoryStats struct + Cache uint64 + KernelMaxUsage uint64 + KernelUsage uint64 + MaxUsage uint64 + Measured []string + RSS uint64 + Swap uint64 + func (ms *MemoryStats) Add(other *MemoryStats) + type ResourceUsage struct + CpuStats *CpuStats + MemoryStats *MemoryStats + func (ru *ResourceUsage) Add(other *ResourceUsage) + type TaskResourceUsage struct + Pids map[string]*ResourceUsage + ResourceUsage *ResourceUsage + Timestamp int64