config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataPath         string                            `yaml:"data_path"`
	RcloneConfigPath string                            `yaml:"rclone_config_path"`
	Repositories     map[string]*repository.BackupRepo `yaml:"repositories"`
}

func ParseConfigFile

func ParseConfigFile(data []byte) (*Config, error)

func ReadConfig

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

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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