common

package
v0.4.79 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 1 Imported by: ? 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 (
	SERVICENAME          = "casaos"
	BODY                 = " "
	RANW_NAME            = "IceWhale-RemoteAccess"
	FORK_RELEASE_VERSION = "v0.4.95"
	FORK_RELEASE_FILE    = "/var/lib/casaos/fork-release"
	FORK_VERSION_URL     = "https://github.com/ReCasaOS/CasaOS-Install/releases/latest/download/version.json"
	FORK_UPDATE_URL      = "https://github.com/ReCasaOS/CasaOS-Install/releases/latest/download/install.sh"
	// UPDATE_UNIT is the transient systemd unit the update runs in, detached
	// from the core it restarts: the button's and the automatic one.
	UPDATE_UNIT = "casaos-update"
)

Variables

View Source
var EventTypes = []message_bus.EventType{
	{Name: "casaos:system:utilization", SourceID: SERVICENAME, PropertyTypeList: []message_bus.PropertyType{}},
	{Name: "casaos:file:recover", SourceID: SERVICENAME, PropertyTypeList: []message_bus.PropertyType{}},
	{Name: "casaos:file:operate", SourceID: SERVICENAME, PropertyTypeList: []message_bus.PropertyType{}},
}

devtype -> action -> event

View Source
var VERSION = "0.0.0-dev"

VERSION is this component's own version. The release build stamps it with the tag it builds, in .github/workflows/release.yml: -X github.com/ReCasaOS/CasaOS/common.VERSION=${RELEASE_TAG#v}.

It is a var for that reason. As a constant it stayed at the version the fork was taken from, so every box answered `casaos -v` with 0.4.15. The first fix stamped it in .goreleaser.yaml, which no release uses: the value then came from this default, which happened to equal the tag it shipped with, and the next release showed the previous number. So the default names nothing: a build that is not stamped says 0.0.0-dev, and the install check compares `casaos -v` with the tag the distribution pins.

Not to be confused with FORK_RELEASE_VERSION above, which is the DISTRIBUTION this binary ships in. The two move on their own: a distribution release need not ship this component.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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