config

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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