config

package
v1.2.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RAUC_OFFLINE_PATH             = "/DATA/rauc/"
	RAUC_OFFLINE_PATH = "/DATA/rauc/offline/"

	RAUC_OFFLINE_RELEASE_FILENAME = "release.yaml"
	OFFLINE_RAUC_TEMP_PATH        = "/tmp/offline_rauc"
)
View Source
const BackgroundCachePath = "/tmp/background"
View Source
const InstallerConfigFilePath = "/etc/casaos/installer.conf"

Variables

View Source
var (
	CommonInfo = &CommonModel{
		RuntimePath: "/var/run/casaos",
	}

	AppInfo = &APPModel{
		LogPath:     "/var/log/casaos",
		LogSaveName: common.InstallerServiceName,
		LogFileExt:  "log",
	}

	ServerInfo = &ServerModel{
		CachePath: "/var/lib/casaos_data/rauc",
		Mirrors: []string{
			"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech/zimaos-rauc/",
			"https://raw.githubusercontent.com/IceWhaleTech/zimaos-rauc/main/",
		},
		ReleasePath: "/var/lib/casaos/release.yaml",
	}

	Cfg            *ini.File
	ConfigFilePath string
)
View Source
var (
	SysRoot = "/"
	// The file name of the rauc package
	// the name can be changed by file change
	RAUC_OFFLINE_RAUC_FILENAME = "rauc.tar"
)

Functions

func InitSetup

func InitSetup(config string)

func ReleaseDir

func ReleaseDir(release codegen.Release) (string, error)

Types

type APPModel

type APPModel struct {
	LogPath     string
	LogSaveName string
	LogFileExt  string
}

type CommonModel

type CommonModel struct {
	RuntimePath string
}

type ServerModel

type ServerModel struct {
	Mirrors     []string `ini:"mirrors,,allowshadow"`
	CachePath   string
	BestURL     string
	ReleasePath string
}

Jump to

Keyboard shortcuts

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