config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_PREFIX = "/v_beta"
)

Variables

This section is empty.

Functions

func Hostname added in v0.1.7

func Hostname() string

Types

type AgentConfig added in v0.1.7

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 added in v0.1.7

func NewAgentConfig(c *cli.Context) AgentConfig

type DNS

type DNS struct {
	Domain     string `json:"domain"`
	RecurseOn  bool   `json:"recurse_on"`
	ListenAddr string `json:"listenAddr"`

	SOARname   string `json:"soarname"`
	SOAMname   string `json:"soamname"`
	SOASerial  uint32 `json:"soaserial"`
	SOARefresh uint32 `json:"soarefresh"`
	SOARetry   uint32 `json:"soaretry"`
	SOAExpire  uint32 `json:"soaexpire"`

	TTL int `json:"ttl"`

	Resolvers       []string      `json:"resolvers"`
	ExchangeTimeout time.Duration `json:"exchange_timeout"`
}

type Janitor

type Janitor struct {
	ListenAddr  string `json:"listenAddr"`
	Domain      string `json:"domain"`
	AdvertiseIP string `json:"ddvertiseIP"`
}

type ManagerConfig added in v0.1.7

type ManagerConfig struct {
	LogLevel          string   `json:"logLevel"`
	DataDir           string   `json:"dataDir"`
	RaftAdvertiseAddr string   `json:"raftAdvertiseAddr"`
	RaftListenAddr    string   `json:"raftListenAddr"`
	ListenAddr        string   `json:"listenAddr"`
	AdvertiseAddr     string   `json:"advertiseAddr"`
	JoinAddrs         []string `json:"joinAddrs"`

	Scheduler Scheduler `json:"scheduler"`
}

func NewManagerConfig added in v0.1.7

func NewManagerConfig(c *cli.Context) ManagerConfig

type Scheduler

type Scheduler struct {
	ZkPath             string `json:"zkpath"`
	MesosFrameworkUser string `json:"mesos-framwork-user"`
	Hostname           string `json:"hostname"`
}
var SchedulerConfig Scheduler

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