config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFromHost

func GetConfigFromHost(
	configFilename string,
	hostname string,
	client *http.Client,
	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"`
	FilePrefix    string `yaml:"file_prefix"`
	AddGroups     bool   `yaml:"add_groups"`
}

Jump to

Keyboard shortcuts

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