config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 4 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"`
	Repositories map[string]*repository.BackupRepo `yaml:"repositories"`
	Storages     map[string]*storage.BaseStorage   `yaml:"storages"`
}

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