config

package
v1.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// URL of the web server with all of our files
	URL string
	// Manifest is a yaml file with the packages to manage on this node
	Manifest string
	// Catalog is a yaml file with details on the available packages
	Catalog string
	// CachePath is a directory we will use for temporary storage
	CachePath string
	// Verbose is true is we should output more detail than normal
	Verbose bool
	// Debug is true is we should output as much as we can
	Debug bool
)

Functions

func Get

func Get()

Get retrieves and then stores the local configuration

Types

type Object

type Object struct {
	URL       string `yaml:"url"`
	Manifest  string `yaml:"manifest"`
	Catalog   string `yaml:"catalog"`
	CachePath string `yaml:"cachepath"`
	Verbose   bool   `yaml:"verbose,omitempty"`
	Debug     bool   `yaml:"debug,omitempty"`
}

Object to store our configuration

Jump to

Keyboard shortcuts

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