Documentation
¶
Index ¶
Constants ¶
View Source
const (
API_PREFIX = "/v_beta"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
DataDir string `json:"dataDir"`
LogLevel string `json:"logLevel"`
ListenAddr string `json:"listenAddr"`
AdvertiseAddr string `json:"advertiseAddr"`
JoinAddrs []string `json:"joinAddrs"`
DNS DNS `json:"dns"`
Janitor Janitor `json:"janitor"`
}
func NewAgentConfig ¶
func NewAgentConfig(c *cli.Context) (AgentConfig, error)
type DNS ¶
type DNS struct {
Domain string `json:"domain"`
RecurseOn bool `json:"recurseOn"`
ListenAddr string `json:"listenAddr"`
TTL int `json:"ttl"`
Resolvers []string `json:"resolvers"`
ExchangeTimeout time.Duration `json:"exchangeTimeout"`
SOARname string `json:"soarname"`
SOAMname string `json:"soamname"`
SOASerial uint32 `json:"soaserial"`
SOARefresh uint32 `json:"soarefresh"`
SOARetry uint32 `json:"soaretry"`
SOAExpire uint32 `json:"soaexpire"`
}
type ManagerConfig ¶
type ManagerConfig struct {
LogLevel string `json:"logLevel"`
Listen string `json:"listenAddr"`
EnableCORS bool
MesosURL *url.URL `json:"mesosURL"`
ZKURL *url.URL `json:"zkURL"`
Strategy string `json:"strategy"`
ReconciliationInterval float64 `json:"reconciliationInterval"`
ReconciliationStep int64 `json:"reconciliationStep"`
ReconciliationStepDelay float64 `json:"reconciliationStepDelay"`
}
func NewManagerConfig ¶
func NewManagerConfig(c *cli.Context) (*ManagerConfig, error)
Click to show internal directories.
Click to hide internal directories.