Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database DatabaseConfig `yaml:"database"` Logging LoggingConfig `yaml:"logging"` Scanner Scanner `yaml:"scanner"` Updater Updater `yaml:"updater"` Registries RegistryEntries `yaml:"registries"` Webhooks Webhooks `yaml:"webhooks"` }
func GetDefaultConfig ¶
func GetDefaultConfig() *Config
func (*Config) ReadConfigIfFound ¶
type ConsoleLogging ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Path string
}
func (DatabaseConfig) LoadDatabase ¶
type FileLogging ¶
type LoggingConfig ¶
type LoggingConfig struct { Console ConsoleLogging `yaml:"console"` File FileLogging `yaml:"file"` }
func (LoggingConfig) CreateLogger ¶
func (c LoggingConfig) CreateLogger() *zerolog.Logger
type RegistryEntries ¶
type RegistryEntries []RegistryEntry
func (RegistryEntries) GetAuthConfigFor ¶
func (e RegistryEntries) GetAuthConfigFor(domain string) *RegistryEntry
func (RegistryEntries) GetSystemContextFor ¶
func (e RegistryEntries) GetSystemContextFor(domain string) *types.SystemContext
type RegistryEntry ¶
type RegistryEntry struct { Domain string `yaml:"domain,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Insecure bool `yaml:"insecure,omitempty"` }
func (RegistryEntry) ConvertToAuthConfig ¶
func (e RegistryEntry) ConvertToAuthConfig() *types.DockerAuthConfig
func (RegistryEntry) GetSystemContext ¶
func (e RegistryEntry) GetSystemContext() *types.SystemContext
type Scanner ¶
type Scanner struct { Interval string `yaml:"interval"` ImageAge int `yaml:"image_age"` ScanAll bool `yaml:"scan_all"` ScanStopped bool `yaml:"scan_stopped"` }
func (Scanner) IsIntervalValid ¶
type Webhook ¶
type Webhook struct { Url string `yaml:"url"` Author WebhookAuthor `yaml:"author"` Kind WebhookKind `yaml:"kind"` }
type WebhookAuthor ¶
type WebhookKind ¶
Click to show internal directories.
Click to hide internal directories.