Versions in this module Expand all Collapse all v0 v0.4.22 Jul 28, 2026 Changes in this version + const LegacyCasaOSServiceName + var ErrInvalidServiceName = errors.New("service name should not contain space or upper case letter") + var ErrLegacyVersionNotFound = errors.New("legacy version not found") + var ErrVersionNotFound = errors.New("version (non-legacy) not found") + var GlobalMigrationStatusDirPath = "/var/lib/casaos/migration" + var LegacyCasaOSConfigFilePath = "/etc/casaos.conf" + func Compare(v1, v2 string) (int, error) + func DetectLegacyVersion() (int, int, int, error) + func DetectMinorVersion() (int, error) + func DetectVersion() (int, int, int, error) + func IsConfigKeyDBPathExist() (bool, error) + func ParseVersion(version string) (int, int, int, int, string, error) + type GlobalMigrationStatus struct + LastMigratedVersion string + ServiceName string + func GetGlobalMigrationStatus(serviceName string) (*GlobalMigrationStatus, error) + func (m *GlobalMigrationStatus) Done(version string) error + func (m *GlobalMigrationStatus) GetGlobalMigrationStatusFilePath() string