Documentation ¶
Overview ¶
Package config provides set of API to provide aos configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alerts ¶
type Alerts struct { JournalAlerts *journalalerts.Config `json:"journalAlerts,omitempty"` SendPeriod aostypes.Duration `json:"sendPeriod"` MaxMessageSize int `json:"maxMessageSize"` MaxOfflineMessages int `json:"maxOfflineMessages"` }
Alerts configuration for alerts.
type Config ¶
type Config struct { Crypt Crypt `json:"fcrypt"` CertStorage string `json:"certStorage"` ServiceDiscoveryURL string `json:"serviceDiscoveryUrl"` IAMProtectedServerURL string `json:"iamProtectedServerUrl"` IAMPublicServerURL string `json:"iamPublicServerUrl"` CMServerURL string `json:"cmServerUrl"` Downloader Downloader `json:"downloader"` StorageDir string `json:"storageDir"` StateDir string `json:"stateDir"` WorkingDir string `json:"workingDir"` ImageStoreDir string `json:"imageStoreDir"` ComponentsDir string `json:"componentsDir"` UnitConfigFile string `json:"unitConfigFile"` ServiceTTLDays uint64 `json:"serviceTtlDays"` LayerTTLDays uint64 `json:"layerTtlDays"` UnitStatusSendTimeout aostypes.Duration `json:"unitStatusSendTimeout"` Monitoring Monitoring `json:"monitoring"` Alerts Alerts `json:"alerts"` Migration Migration `json:"migration"` SMController SMController `json:"smController"` UMController UMController `json:"umController"` }
Config instance.
type Crypt ¶
type Crypt struct { CACert string `json:"caCert"` TpmDevice string `json:"tpmDevice,omitempty"` Pkcs11Library string `json:"pkcs11Library,omitempty"` }
Crypt configuration structure with crypto attributes.
type Downloader ¶
type Downloader struct { DownloadDir string `json:"downloadDir"` MaxConcurrentDownloads int `json:"maxConcurrentDownloads"` RetryDelay aostypes.Duration `json:"retryDelay"` MaxRetryDelay aostypes.Duration `json:"maxRetryDelay"` DownloadPartLimit int `json:"downloadPartLimit"` }
Downloader downloader configuration.
type Migration ¶
type Migration struct { MigrationPath string `json:"migrationPath"` MergedMigrationPath string `json:"mergedMigrationPath"` }
Migration struct represents path for db migration.
type Monitoring ¶
type Monitoring struct { MonitorConfig *resourcemonitor.Config `json:"monitorConfig"` MaxOfflineMessages int `json:"maxOfflineMessages"` SendPeriod aostypes.Duration `json:"sendPeriod"` MaxMessageSize int `json:"maxMessageSize"` }
Monitoring configuration for system monitoring.
Click to show internal directories.
Click to hide internal directories.