Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCron ¶
func ValidateCron(fl validator.FieldLevel) bool
func ValidateId ¶
func ValidateId(fl validator.FieldLevel) bool
func ValidatePathAbs ¶
func ValidatePathAbs(fl validator.FieldLevel) bool
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (Repo) GetCronSpec ¶
type RepoConfig ¶
type RepoConfig struct { Id string `yaml:"id" validate:"repo_id"` Name string `yaml:"name"` Type string `yaml:"type" validate:"oneof=dummy reposync rsync"` Src string `yaml:"src"` Dest string `yaml:"dest" validate:"repo_path"` Cron string `yaml:"cron" validate:"repo_cron"` Exclude []string `yaml:"exclude"` Snapshots int `yaml:"snapshots" validate:"min=1,max=1024"` }
type RepoMetrics ¶
type RepoMetrics struct { SyncTotal prometheus.Counter SyncDuration prometheus.Gauge }
Click to show internal directories.
Click to hide internal directories.