config

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause-Clear Imports: 14 Imported by: 0

Documentation

Index

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 NewConfig

func NewConfig(tomlConfigPaths []string) (*Config, error)

func (*Config) ComposeConfig

func (c *Config) ComposeConfig() *compose.Config

func (*Config) GetDBPath

func (c *Config) GetDBPath() string

func (*Config) GetEnabledApps

func (c *Config) GetEnabledApps() []string

func (*Config) GetHardwareID

func (c *Config) GetHardwareID() string

func (*Config) GetServerBaseURL

func (c *Config) GetServerBaseURL() *url.URL

func (*Config) GetStorageDir

func (c *Config) GetStorageDir() string

func (*Config) GetStorageUsageWatermark added in v1.1.0

func (c *Config) GetStorageUsageWatermark() uint

func (*Config) GetTag

func (c *Config) GetTag() string

func (*Config) GetTargetsFilepath

func (c *Config) GetTargetsFilepath() string

func (*Config) SetClientForProxy added in v1.2.0

func (c *Config) SetClientForProxy(client proxyHTTPClient)

func (*Config) TomlConfig

func (c *Config) TomlConfig() *sotatoml.AppConfig

type ProxyProvider added in v1.2.0

type ProxyProvider struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL