config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 11 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 GetAuthSigningKey added in v0.5.0

func GetAuthSigningKey() (string, error)

GetAuthSigningKey returns the secret key used for signing JWTs and secure sessions

func GetOAuthConfig added in v0.5.0

func GetOAuthConfig(host string) (*oauth2.Config, error)

GetOAuthConfig returns the OAuth configuration for the GitHub provider

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"`
	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