config

package
v0.0.0-...-0dafe68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleConfig

func SampleConfig() string

Types

type Config

type Config struct {
	Runtime *RuntimeConfig

	ProjectName string `yaml:"project_name"`
	Vcs         string `yaml:"vcs"`
	VcsProvider string `yaml:"vcs_provider"`

	Bitbucket struct {
		User        string `yaml:"user"`
		AppPassword string `yaml:"app_password"`
		ProjectMode bool   `yaml:"project_mode"`
	}

	Languages []struct {
		Name      string `yaml:"name"`
		Version   string `yaml:"version"`
		BaseImage string `yaml:"base_image"`
	}

	Deploy struct {
		Root string `yaml:"root"`
		Cmd  string `yaml:"cmd"`
	}
}
var (
	Conf *Config
)

func Load

func Load(path string) *Config

func NewConfig

func NewConfig() *Config

type RuntimeConfig

type RuntimeConfig struct {
	Cmd string
	Arg string

	Vcs         string
	VcsProvider string

	Lang string
}

Jump to

Keyboard shortcuts

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