config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	Profile   string `yaml:"profile"`
	AccountID string `yaml:"account"`
}

type AwsSharedProfile

type AwsSharedProfile = string

type BackupConfig

type BackupConfig struct {
	Src       BackupSrc `yaml:"src"`
	Dst       BackupDst `yaml:"dst"`
	CanChange bool      `yaml:"canChange"`
	Keep      bool      `yaml:"keep"`
	Vault     VaultName `yaml:"vault"`
	Pass      string    `yaml:"password"`
}

type BackupDst

type BackupDst = string

type BackupSrc

type BackupSrc = string

type Config

type Config struct {
	Backups []BackupConfig `yaml:"backup"`
	AWS     AWSConfig      `yaml:"aws"`
	Db      DB             `yaml:"db"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

type DB

type DB struct {
	Path string `yaml:"path"`
}

type VaultName

type VaultName = string

Jump to

Keyboard shortcuts

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