config

package
v0.0.0-...-d6faae9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	EnvAwsAccessKey  = "ETCDBACKUP_AWS_ACCESS_KEY"
	EnvAwsSecretKey  = "ETCDBACKUP_AWS_SECRET_KEY"
	EnvEncryptPassph = "ETCDBACKUP_PASSPHRASE"
)

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig(f Flags) error

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func ParseEnvs

func ParseEnvs(f *Flags)

parse

Types

type AWSConfig

type AWSConfig struct {
	AccessKey string
	Bucket    string
	Region    string
	SecretKey string
}

AWS config

type Flags

type Flags struct {
	AwsAccessKey    string
	AwsSecretKey    string
	AwsS3Bucket     string
	AwsS3Region     string
	EtcdV2DataDir   string
	EtcdV3Cert      string
	EtcdV3CACert    string
	EtcdV3Key       string
	EtcdV3Endpoints string
	EncryptPass     string
	GuestBackup     bool
	Help            bool
	Prefix          string
	Provider        string
	PushGatewayURL  string
	PushGatewayJob  string
	SkipV2          bool
}

type PrometheusConfig

type PrometheusConfig struct {
	Job string
	Url string
}

Push gateway address

Jump to

Keyboard shortcuts

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