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 GetAuthSigningKey ¶ added in v0.5.0
GetAuthSigningKey returns the secret key used for signing JWTs and secure sessions
Types ¶
type Configuration ¶
type Configuration struct { Cors cors.Cors Repos repos.Repos ReleasesEnabled bool `yaml:"releasesEnabled"` TillerPortForward bool `yaml:"tillerPortForward"` CacheRefreshInterval int64 `yaml:"cacheRefreshInterval"` Mongo datastore.Config `yaml:"mongodb"` OAuthConfig oauthConfig `yaml:"oauthConfig"` SigningKey string `yaml:"signingKey"` TillerNamespace string `yaml:"tillerNamespace"` TillerHost string `yaml:"tillerHost"` 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
Click to show internal directories.
Click to hide internal directories.