config

package
v1.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: Apache-2.0 Imports: 8 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
	// AuthUser is the username we will use for basic http auth
	AuthUser string
	// AuthPass is the password we will use for basic http auth
	AuthPass string
	// TLSAuth determines if we should use TLS mutual auth
	TLSAuth bool
	// TLSClientCert is the path to the client cert we will use for TLS auth
	TLSClientCert string
	// TLSClientKey is the path to the client key we will use for TLS auth
	TLSClientKey string
	// TLSServerCert is the path to the server cert we will use for TLS auth
	TLSServerCert string
)

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"`
	AuthUser      string `yaml:"auth_user,omitempty"`
	AuthPass      string `yaml:"auth_pass,omitempty"`
	TLSAuth       bool   `yaml:"tls_auth,omitempty"`
	TLSClientCert string `yaml:"tls_client_cert,omitempty"`
	TLSClientKey  string `yaml:"tls_client_key,omitempty"`
	TLSServerCert string `yaml:"tls_server_cert,omitempty"`
}

Object to store our configuration

Jump to

Keyboard shortcuts

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