config

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const DefaultConfig = "/etc/dockership/dockership.conf"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Global struct {
		UseShortRevisions bool `default:"true"`
		GithubToken       string
		EtcdServers       []string `gcfg:"EtcdServer"`
	}
	HTTP struct {
		Listen             string `default:":8080"`
		GithubID           string
		GithubSecret       string
		GithubOrganization string
		GithubUsers        []string `gcfg:"GithubUser"`
		GithubRedirectURL  string
	}
	Projects     map[string]*core.Project     `gcfg:"Project"`
	Environments map[string]*core.Environment `gcfg:"Environment"`
}

func (*Config) LinkProjectsAndEnviroments added in v0.1.0

func (c *Config) LinkProjectsAndEnviroments()

func (*Config) LoadEnvironments added in v0.1.0

func (c *Config) LoadEnvironments()

func (*Config) LoadFile

func (c *Config) LoadFile(filename string) error

func (*Config) LoadProjects

func (c *Config) LoadProjects()

Jump to

Keyboard shortcuts

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