config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig interface {
	Type() store.Backend
	IsWatchSupported() bool
}

type ConsulBackendConfig

type ConsulBackendConfig struct {
	Endpoints []string
	CAFile    string
	CertFile  string
	KeyFile   string
}

func NewConsulBackendConfig

func NewConsulBackendConfig() *ConsulBackendConfig

func (*ConsulBackendConfig) IsWatchSupported

func (*ConsulBackendConfig) IsWatchSupported() bool

func (*ConsulBackendConfig) Type

type EtcdBackendConfig

type EtcdBackendConfig struct {
	Endpoints []string
	CAFile    string
	CertFile  string
	KeyFile   string
}

func NewEtcdBackendConfig

func NewEtcdBackendConfig() *EtcdBackendConfig

func (*EtcdBackendConfig) IsWatchSupported

func (*EtcdBackendConfig) IsWatchSupported() bool

func (*EtcdBackendConfig) Type

type GlobalConfig

type GlobalConfig struct {
	Prefix         string
	Templates      []string
	Onetime        bool
	Watch          bool
	ResyncInterval time.Duration
	NoOp           bool
	KeepStageFile  bool
}

func NewGlobalConfig

func NewGlobalConfig() *GlobalConfig

type TemplateConfig

type TemplateConfig struct {
	Src       string
	Dest      string
	Uid       int
	Gid       int
	Mode      string
	Prefix    string
	CheckCmd  string
	ReloadCmd string
}

func NewTemplateConfig

func NewTemplateConfig() *TemplateConfig

type TemplateConfigFile

type TemplateConfigFile struct {
	TemplateConfig TemplateConfig `toml:"template"`
}

type ZookeeperBackendConfig

type ZookeeperBackendConfig struct {
	Endpoints []string
}

func NewZookeeperBackendConfig

func NewZookeeperBackendConfig() *ZookeeperBackendConfig

func (*ZookeeperBackendConfig) IsWatchSupported

func (*ZookeeperBackendConfig) IsWatchSupported() bool

func (*ZookeeperBackendConfig) Type

Jump to

Keyboard shortcuts

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