config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v0.1.0

func Decrypt(encrypted string, key string) (string, error)

func DecryptConfig added in v0.1.0

func DecryptConfig(c *Config, encrypted string) (string, error)

func PKCS5UnPadding added in v0.1.0

func PKCS5UnPadding(src []byte) []byte

Types

type Config

type Config struct {
	Image           string
	ClusterIP       string
	ClusterSize     int
	ContainerPrefix string
	ContainerEnv    map[string]string
	DockerSocket    string
	DB              *db.DB
	DBHost          string
	DBName          string
	DBPassword      string
	DBPort          int
	DBUser          string
	UUID            string
	Ports           map[string]int

	SwarmEnabled bool
	HTTPEnabled  bool

	ConfigPath          string
	CertPath            string
	KeyPath             string
	CertChainPath       string
	EncryptionKeyPath   string
	HostRegistrationURL string

	HAEnabled bool
}

func (*Config) APIKeys

func (c *Config) APIKeys() (string, string, error)

func (*Config) LoadConfig

func (c *Config) LoadConfig() error

func (*Config) OpenDB

func (c *Config) OpenDB() error

func (*Config) RedisHosts

func (c *Config) RedisHosts() string

func (*Config) ZkHost added in v0.1.0

func (c *Config) ZkHost() string

func (*Config) ZkHosts

func (c *Config) ZkHosts() string

Jump to

Keyboard shortcuts

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