prerun

package
v0.0.0-...-2e00a33 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_VERSION_SKEW = 2

Variables

This section is empty.

Functions

func DataManagement

func DataManagement(dataManager datadir.Manager) error

func FeatureGateLockManagement

func FeatureGateLockManagement(cfg *config.Config) error

FeatureGateLockManagement manages the feature gate lock file that prevents upgrades and config changes when custom feature gates are configured

func GetCurrentDeploymentID

func GetCurrentDeploymentID() (string, error)

func GetVersionOfExecutable

func GetVersionOfExecutable() (versionMetadata, error)

func GetVersionStringOfData

func GetVersionStringOfData() string

func VersionMetadataManagement

func VersionMetadataManagement() error

func WriteVersionMetadata

func WriteVersionMetadata() error

WriteVersionMetadata persists the current executable version to the version file. It must be called only after all pre-run checks have passed to avoid poisoning the version file on a failed startup.

Types

type Backups

type Backups []data.BackupName

type HealthInfo

type HealthInfo struct {
	Health       string `json:"health"`
	DeploymentID string `json:"deployment_id"`
	BootID       string `json:"boot_id"`
}

Jump to

Keyboard shortcuts

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