forked from TrueCloudLab/restic
wip
This commit is contained in:
parent
7ad648c686
commit
6bad560324
1 changed files with 7 additions and 7 deletions
|
@ -15,12 +15,12 @@ import (
|
||||||
|
|
||||||
// Config contains configuration items read from a file.
|
// Config contains configuration items read from a file.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Repo string `config:"repo" flag:"repo" env:"RESTIC_REPOSITORY"`
|
Repo string `hcl:"repo" flag:"repo" env:"RESTIC_REPOSITORY"`
|
||||||
Password string `config:"password" env:"RESTIC_PASSWORD"`
|
Password string `hcl:"password" env:"RESTIC_PASSWORD"`
|
||||||
PasswordFile string `config:"password_file" flag:"password-file" env:"RESTIC_PASSWORD_FILE"`
|
PasswordFile string `hcl:"password_file" flag:"password-file" env:"RESTIC_PASSWORD_FILE"`
|
||||||
|
|
||||||
Backends map[string]Backend `config:"backend"`
|
Backends map[string]Backend `hcl:"backend"`
|
||||||
Backup Backup `config:"backup"`
|
Backup Backup `hcl:"backup"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backend is a configured backend to store a repository.
|
// Backend is a configured backend to store a repository.
|
||||||
|
@ -31,8 +31,8 @@ type Backend struct {
|
||||||
|
|
||||||
// Backup sets the options for the "backup" command.
|
// Backup sets the options for the "backup" command.
|
||||||
type Backup struct {
|
type Backup struct {
|
||||||
Target []string `config:"target"`
|
Target []string `hcl:"target"`
|
||||||
Excludes []string `config:"exclude" flag:"exclude"`
|
Excludes []string `hcl:"exclude" flag:"exclude"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// listTags returns the all the top-level tags with the name tagname of obj.
|
// listTags returns the all the top-level tags with the name tagname of obj.
|
||||||
|
|
Loading…
Add table
Reference in a new issue