config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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 Janitor

type Janitor struct {
	ListenAddr    string `json:"listenAddr"`
	TLSListenAddr string `json:"tlsListenAddr"`
	TLSCertFile   string `json:"tlsCertFile"`
	TLSKeyFile    string `json:"tlsKeyFile"`
	Domain        string `json:"domain"`
	AdvertiseIP   string `json:"advertiseIP"`
}

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)

type SwanMode

type SwanMode string
const (
	Manager SwanMode = "manager"
	Agent   SwanMode = "agent"
)

Jump to

Keyboard shortcuts

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