ubconfig

package
v0.0.0-...-05a15ff Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertManagerConfig

type AlertManagerConfig struct {
	BaseUrl string `json:"baseurl"`
}

type Config

type Config struct {
	EncryptionPublicKey string              `json:"encryption_publickey"`
	DockerEndpoint      *string             `json:"docker_endpoint,omitempty"`
	StaticTargets       []StaticTarget      `json:"static_targets"`
	Storage             StorageConfig       `json:"storage"`
	AlertManager        *AlertManagerConfig `json:"alertmanager,omitempty"`
}

func DefaultConfig

func DefaultConfig(pubkeyFilePath string, kitchenSink bool) *Config

func ReadFromEnvOrFile

func ReadFromEnvOrFile() (*Config, error)

type StaticTarget

type StaticTarget struct {
	ServiceName   string   `json:"service_name"`
	BackupCommand []string `json:"backup_command"`
}

type StorageConfig

type StorageConfig struct {
	S3 *StorageS3Config `json:"s3"`
}

type StorageS3Config

type StorageS3Config struct {
	Bucket          string `json:"bucket"`
	BucketRegion    string `json:"bucket_region"`
	AccessKeyId     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
}

Jump to

Keyboard shortcuts

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