Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCollectInterval = 10 * time.Minute DefaultUnits = "1024" DefaultCost = "0.1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` CollectInterval toml.Duration `toml:"collect_interval"` Deployd *Deployd `json:"deployd" toml:"deployd"` Dockerd *Dockerd `json:"dockerd" toml:"dockerd"` Snapshots *Snapshots `json:"snapshots" toml:"snapshots"` Backups *Backups `json:"backups" toml:"backups"` Skews *Skews `json:"skews" toml:"skews"` }
type Handler ¶
type Handler struct {
EventChannel chan bool
}
func NewHandler ¶
func NewHandler() *Handler
type Service ¶
type Service struct { Handler *Handler Meta *meta.Config Deployd *deployd.Config Dockerd *docker.Config Config *Config Storage *storage.Config // contains filtered or unexported fields }
Service manages the listener and handler for an HTTP endpoint.
func NewService ¶
func NewService(c *meta.Config, one *deployd.Config, doc *docker.Config, f *Config, strg *storage.Config) *Service
NewService returns a new instance of Service.
type Skews ¶
type Skews struct { Enabled bool `json:"enabled" toml:"enabled"` SoftGracePeriod toml.Duration `json:"soft_grace_period" toml:"soft_grace_period"` SoftLimit string `json:"soft_limit" toml:"soft_limit"` HardGracePeriod toml.Duration `json:"hard_grace_period" toml:"hard_grace_period"` HardLimit string `json:"hard_limit" toml:"hard_limit"` }
Click to show internal directories.
Click to hide internal directories.