config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigureFile = "roadie.yml"

ConfigureFile defines configuration file name.

View Source
const DotGit = ".git"

DotGit defines a git repository name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Configuration for Microsoft Azure.
	AzureConfig azure.Config `yaml:"azure,omitempty"`
	// Configuration for Google Cloud Platform.
	GcpConfig gcp.Config `yaml:"gcp,omitempty"`
	// Config file name used to save/load this config.
	FileName string `yaml:"-"`
}

Config defines a structure of config file.

func NewConfig added in v0.1.4

func NewConfig() (cfg *Config, err error)

NewConfig creates a config object. If there is a configure file, it also loads the file, too.

func (*Config) Load added in v0.3.5

func (c *Config) Load() (err error)

Load config file.

func (*Config) Save

func (c *Config) Save() (err error)

Save config stores configurations to a given file.

func (*Config) String added in v0.3.5

func (c *Config) String() string

String returns a string representing this config.

Jump to

Keyboard shortcuts

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