config

package
v0.0.2-0...-cdf9e78 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintSampleConfig

func PrintSampleConfig(bckFilters, distFilters []string)

PrintSampleConfig prints the sample config

Types

type Config

type Config struct {
	DistFilters   []string
	BackupFilters []string
	Distributors  []*models.RunningDistributor
	Backups       []*models.RunningBackup
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(_log *logrus.Entry) *Config

func (*Config) LoadConfig

func (c *Config) LoadConfig(path string) error

LoadConfig loads the given config file and applies it to c

func (*Config) LoadConfigData

func (c *Config) LoadConfigData(data []byte) error

LoadConfigData loads TOML-formatted config data

Jump to

Keyboard shortcuts

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