config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: BSD-3-Clause-Clear Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKey           = "pacman.tags"
	ServerBaseUrlKey = "tls.server"
	StorageDirKey    = "storage.path"
	HardwareIDKey    = "provision.primary_ecu_hardware_id"

	StorageDefaultDir      = "/var/sota"
	TargetsDefaultFilename = "targets.json"
)

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