config

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 8 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"`
	GossipListenAddr string   `json:"gossipListenAddr"`
	GossipJoinAddr   string   `json:"gossipJoinAddr"`
	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:"recurseOn"`
	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:"exchangeTimeout"`
}

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"`
	ListenAddr         string `json:"listenAddr"`
	MesosFrameworkUser string `json:"mesosFrameworkUser"`
	Hostname           string `json:"hostname"`

	MesosZkPath *url.URL `json:"mesosZkPath"`
	ZkPath      *url.URL `json:"zkPath"`
}

func NewManagerConfig added in v0.1.7

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