Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
AuthConfig holds authentication configuration
type CacheConfig ¶
type CacheConfig struct {
TTL time.Duration `koanf:"ttl"`
CleanupInterval time.Duration `koanf:"cleanup_interval"`
}
CacheConfig holds cache-specific configuration
type Config ¶
type Config struct {
Http HttpConfig `koanf:"http"`
Storage StorageConfig `koanf:"storage"`
Auth AuthConfig `koanf:"auth"`
Cache CacheConfig `koanf:"cache"`
}
Config holds the configuration for the docker cache server
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a configuration with default values
type HttpConfig ¶
type HttpConfig struct {
Addr string `koanf:"addr"`
Prefix string `koanf:"prefix"`
// Host e.g. "http://myregistryaddress.org:5000
Host string `koanf:"host"`
Relativeurls bool `koanf:"relativeurls"`
Debug HttpDebugConfig `koanf:"debug"`
}
HttpConfig holds server-specific configuration
type HttpDebugConfig ¶
type HttpDebugConfig struct {
Addr string `koanf:"addr"`
Prometheus PrometheusConfig `koanf:"prometheus"`
}
type PrometheusConfig ¶
type StorageConfig ¶
type StorageConfig struct {
Directory string `koanf:"directory"`
}
StorageConfig holds storage-specific configuration
Click to show internal directories.
Click to hide internal directories.