Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Database: &DatabaseConfig{ CacheSize: 16384, }, Updater: &UpdaterConfig{ Interval: 1 * time.Hour, }, API: &APIConfig{ Port: 6060, HealthPort: 6061, Timeout: 900 * time.Second, }, Notifier: &NotifierConfig{ Attempts: 5, RenotifyInterval: 2 * time.Hour, }, }
DefaultConfig is a configuration that can be used as a fallback value.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { Port int HealthPort int Timeout time.Duration PaginationKey string CertFile, KeyFile, CAFile string }
APIConfig is the configuration for the API service.
type Config ¶
type Config struct { Database *DatabaseConfig Updater *UpdaterConfig Notifier *NotifierConfig API *APIConfig }
Config is the global configuration for an instance of Clair.
type DatabaseConfig ¶
DatabaseConfig is the configuration used to specify how Clair connects to a database.
type NotifierConfig ¶
type NotifierConfig struct { Attempts int RenotifyInterval time.Duration Params map[string]interface{} `yaml:",inline"` }
NotifierConfig is the configuration for the Notifier service and its registered notifiers.
type UpdaterConfig ¶
UpdaterConfig is the configuration for the Updater service.
Click to show internal directories.
Click to hide internal directories.