Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PidFile string `yaml:"pid"` HealthCheckInterval int `yaml:"health_check_interval"` HealthCheckTimeout int `yaml:"health_check_timeout"` Core string `yaml:"core"` HostName string `yaml:"-"` Docker DockerConfig Metrics MetricsConfig API APIConfig Log LogConfig }
func (*Config) LoadConfigFromFile ¶
LoadConfigFromFile 从config path指定的文件加载config 失败就算了, 反正也要从cli覆写的
func (*Config) PrepareConfig ¶
func (config *Config) PrepareConfig(c *cli.Context)
PrepareConfig 从cli覆写并做准备
type Container ¶
type Container struct { ID string Pid int Running bool Healthy bool Name string EntryPoint string Ident string Version string CPUQuota int64 CPUPeriod int64 Memory int64 Extend map[string]string Publish map[string]string Networks map[string]*network.EndpointSettings `json:"-"` HealthCheck *HealthCheck `json:"-"` }
type DockerConfig ¶
type DockerConfig struct {
Endpoint string `yaml:"endpoint"`
}
type HealthCheck ¶
type LogConsumer ¶
type MemoryStats ¶
type MetricsConfig ¶
type PrevCheck ¶
func NewPrevCheck ¶
func NewPrevCheck() *PrevCheck
Click to show internal directories.
Click to hide internal directories.