config

package
v0.0.5-0...-1633514 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package "config" is a central location for configuration options. It also contains config file parsing logic.

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiToken   = "secret"                    // Token for API Access
	ApiAddress = "https://127.0.0.1:1566"    // Listen uri for the API (scheme defaults to https)
	BuildDir   = "/var/db/slurp/build/"      // Build staging directory
	ConfigFile = ""                          // Configuration file to load
	Insecure   = true                        // Disable tls key checking to hoarder
	LogLevel   = "info"                      // Log level to output [fatal|error|info|debug|trace]
	SshAddr    = "127.0.0.1:1567"            // Address ssh server will listen on (ip:port combo)
	SshHostKey = "/var/db/slurp/slurp_rsa"   // SSH host (private) key file
	StoreAddr  = "hoarders://127.0.0.1:7410" // Storage host address
	StoreToken = ""                          // Storage auth token
	Version    = false                       // Print version info and exit

	Log lumber.Logger // Central logger for slurp
)

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags adds the available cli flags

func LoadConfigFile

func LoadConfigFile() error

LoadConfigFile reads the specified config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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