Documentation
¶
Index ¶
- Constants
- type Config
- func (c *Config) ComposeConfig() *compose.Config
- func (c *Config) GetDBPath() string
- func (c *Config) GetEnabledApps() []string
- func (c *Config) GetHardwareID() string
- func (c *Config) GetImagePruningFlag() bool
- func (c *Config) GetReservedStorage() uint64
- func (c *Config) GetServerBaseURL() *url.URL
- func (c *Config) GetStorageDir() string
- func (c *Config) GetStorageWatermark() uint64
- func (c *Config) GetTag() string
- func (c *Config) GetTargetsFilepath() string
- func (c *Config) SetClientForProxy(client proxyHTTPClient)
- func (c *Config) TomlConfig() *sotatoml.AppConfig
- type ProxyProvider
Constants ¶
View Source
const ( TagKey = "pacman.tags" ServerBaseUrlKey = "tls.server" StorageDirKey = "storage.path" StorageDBPathKey = "storage.sqldb_path" HardwareIDKey = "provision.primary_ecu_hardware_id" StorageUsageWatermark = "pacman.storage_watermark" // percentage (20-99) of overall storage usable by apps ReservedStorageKey = "pacman.reserved_storage" // absolute free space to keep reserved (e.g. "2GiB" or "500MB"); takes precedence over StorageUsageWatermark ComposeAppsProxyKey = "pacman.compose_apps_proxy" ComposeAppsProxyCaKey = "import.tls_cacert_path" ComposeAppsPruneUnusedImagesKey = "pacman.prune_unused_images" StorageDefaultDir = "/var/sota" StorageDefaultDBPath = "sql.db" DefaultConfigFilename = "sota.toml" TargetsDefaultFilename = "targets.json" StorageUsageWatermarkDefaultStr = "95" StorageUsageWatermarkDefault = 95 MinStorageUsageWatermark = 20 MaxStorageUsageWatermark = 99 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ComposeConfig ¶
func (*Config) GetEnabledApps ¶
func (*Config) GetHardwareID ¶
func (*Config) GetImagePruningFlag ¶ added in v1.3.3
func (*Config) GetReservedStorage ¶ added in v1.4.0
GetReservedStorage returns the absolute amount of free space, in bytes, to keep reserved for non-Apps usage. A value of zero means no reservation is configured and the percentage watermark from GetStorageWatermark applies.
func (*Config) GetServerBaseURL ¶
func (*Config) GetStorageDir ¶
func (*Config) GetStorageWatermark ¶ added in v1.4.0
GetStorageWatermark returns the configured storage usage watermark as a percentage of total storage usable by apps.
func (*Config) GetTargetsFilepath ¶
func (*Config) SetClientForProxy ¶ added in v1.2.0
func (c *Config) SetClientForProxy(client proxyHTTPClient)
func (*Config) TomlConfig ¶
type ProxyProvider ¶ added in v1.2.0
type ProxyProvider struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.