config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: BSD-3-Clause-Clear Imports: 10 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

	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) TomlConfig

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

Jump to

Keyboard shortcuts

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