config

package
v0.1.2-alpha40 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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/cache/casaos",
		Mirrors: []string{
			"https://raw.githubusercontent.com/IceWhaleTech",
			"https://casaos.oss-cn-shanghai.aliyuncs.com/IceWhaleTech",
		},
	}

	Cfg            *ini.File
	ConfigFilePath string
)

Functions

func InitSetup

func InitSetup(config string)

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
}

Jump to

Keyboard shortcuts

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