config

package
v0.4.8-alpha5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LocalStorageConfigFilePath = "/etc/casaos/local-storage.conf"
)

Variables

View Source
var (
	CommonInfo = &model.CommonModel{
		RuntimePath: constants.DefaultRuntimePath,
	}

	AppInfo = &model.APPModel{
		DBPath:      constants.DefaultDataPath,
		LogPath:     constants.DefaultLogPath,
		LogSaveName: "local-storage",
		LogFileExt:  "log",
		ShellPath:   "/usr/share/casaos/shell",
	}

	ServerInfo = &model.ServerModel{
		USBAutoMount:   "True",
		EnableMergerFS: "False",
	}
)
View Source
var (
	Cfg            *ini.File
	ConfigFilePath string
)

Functions

func InitSetup

func InitSetup(config string, sample string)

func SaveSetup

func SaveSetup(config string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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