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) GetServerBaseURL() *url.URL
- func (c *Config) GetStorageDir() string
- func (c *Config) GetStorageUsageWatermark() uint
- 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" HardwareIDKey = "provision.primary_ecu_hardware_id" StorageUsageWatermark = "pacman.storage_watermark" // in percentage of overall storage, the maximum allowed to be used by apps ComposeAppsProxyKey = "pacman.compose_apps_proxy" ComposeAppsProxyCaKey = "import.tls_cacert_path" StorageDefaultDir = "/var/sota" 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) GetServerBaseURL ¶
func (*Config) GetStorageDir ¶
func (*Config) GetStorageUsageWatermark ¶ added in v1.1.0
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.