config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDir

func BaseDir() string

BaseDir returns the location of the directory where the configuration files are stored

func GetRedisPool added in v0.4.0

func GetRedisPool() *zoom.Pool

GetRedisPool returns a pool of Zoom connections

Types

type Configuration

type Configuration struct {
	Cors                 cors.Cors
	Repos                repos.Repos
	ReleasesEnabled      bool  `yaml:"releasesEnabled"`
	TillerPortForward    bool  `yaml:"tillerPortForward"`
	CacheRefreshInterval int64 `yaml:"cacheRefreshInterval"`
	Redis                redisConfig
	Initialized          bool
}

Configuration is the the resulting environment based Configuration For now it only includes Cors info

func GetConfig

func GetConfig() (Configuration, error)

GetConfig returns the environment specific configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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