mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
7c3bf86a6b
Except for registry sync config Signed-off-by: Bogdan BIVOLARU <104334+bogdanbiv@users.noreply.github.com>
43 lines
691 B
Go
43 lines
691 B
Go
package sync
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// key is registry address.
|
|
type CredentialsFile map[string]Credentials
|
|
|
|
type Credentials struct {
|
|
Username string
|
|
Password string
|
|
}
|
|
|
|
type Config struct {
|
|
Enable *bool
|
|
CredentialsFile string
|
|
Registries []RegistryConfig
|
|
}
|
|
|
|
type RegistryConfig struct {
|
|
URLs []string
|
|
PollInterval time.Duration
|
|
Content []Content
|
|
TLSVerify *bool
|
|
OnDemand bool
|
|
CertDir string
|
|
MaxRetries *int
|
|
RetryDelay *time.Duration
|
|
OnlySigned *bool
|
|
}
|
|
|
|
type Content struct {
|
|
Prefix string
|
|
Tags *Tags
|
|
Destination string `mapstructure:",omitempty"`
|
|
StripPrefix bool
|
|
}
|
|
|
|
type Tags struct {
|
|
Regex *string
|
|
Semver *bool
|
|
}
|