config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFromHost

func GetConfigFromHost(
	configFilename string,
	hostname string,
	rootCAs *x509.CertPool,
	logger log.Logger) error

GetConfigFromHost grabs a default config file from a given host and stores it in the local file system.

Types

type AppConfigFile

type AppConfigFile struct {
	Base BaseConfig
}

AppConfigFile represents a keymaster client configuration file

func LoadVerifyConfigFile

func LoadVerifyConfigFile(configFilename string) (AppConfigFile, error)

LoadVerifyConfigFile reads, verifies, and returns the contents of a keymaster configuration file. LoadVerifyConfigFile returns an error if the configuration file is invalid.

type BaseConfig

type BaseConfig struct {
	Gen_Cert_URLS string `yaml:"gen_cert_urls"`
	Username      string `yaml:"username"`
}

Jump to

Keyboard shortcuts

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