config

package
v0.1.2-beta Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filepath string, s *Service)

Load the the configuration file

Types

type CliParams

type CliParams struct {
	ConfigFile     *string
	UnsealKeyCount *int
	Instances      multiValueFlags
	ResetInstances *bool
	StatusPath     *string
	UnsealPath     *string
	Interval       *int
	Protocol       *string
	Keys           multiValueFlags
	KeyFile        *string
}

CliParams - The command line arguments options.

type Instance

type Instance struct {
	Domain string
}

Instance - A type for the instance url

type Service

type Service struct {
	Vault   VaultConf
	Workers WorkersConf
	Servers []Instance `toml:"server"`
	Keys    []string
}

Service - The overarching configuration type

func LoadConfiguration

func LoadConfiguration() *Service

LoadConfiguration - Load the configuration for the service.

type VaultConf

type VaultConf struct {
	Protocol       string
	StatusPath     string `toml:"status_path"`
	UnsealPath     string `toml:"unseal_path"`
	UnsealKeyCount int    `toml:"unseal_key_count"`
	CheckInterval  int    `toml:"seal_check_interval"`
}

VaultConf - The Vault configuration How to call, where to call, and how often to call

type WorkersConf

type WorkersConf struct {
	StatusCheckCount int `toml:"status_check"`
	UnsealCount      int `toml:"unseal"`
	LoggingCount     int `toml:"logging"`
}

WorkersConf - The workers configuration

Jump to

Keyboard shortcuts

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