config

package
v0.0.0-...-ccd31aa Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(cfgpath string, config *Config) error

SaveConfig creates updated configuration at the configured viper config file location. Any old configuration will be overwritten.

Types

type Config

type Config struct {
	Repo Repo
}

Config reflects the content of the configuration file.

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig reads configuration from the configured viper config file location.

type Repo

type Repo struct {
	URL string
}

Repo reflects the Envibin repository configuration.

Jump to

Keyboard shortcuts

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