system

package
v0.0.0-...-5f17d81 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYSTEM_RESERVED_MEMORY = 1 * 1000
)

Variables

This section is empty.

Functions

func BalanceMemory

func BalanceMemory(services []ServiceConfig, totalSystemMemory int) (map[string]*ServiceConfig, error)

func CheckCPU

func CheckCPU(cores int) error

func CheckDisk

func CheckDisk(size uint64) error

func CheckDistro

func CheckDistro() (string, error)

func CheckMem

func CheckMem(size uint64) error

func GetOddValue

func GetOddValue(value int) int

func InstallTools

func InstallTools(distro string) error

func PrepareKernel

func PrepareKernel() error

func PrepareSystem

func PrepareSystem(distro string) error

func VerifyAirGapPrerequisites

func VerifyAirGapPrerequisites() error

Types

type ServiceConfig

type ServiceConfig struct {
	Name           string
	Priority       int
	AssignedMemory int
	MinMemory      int
	MaxMemory      int
}

Jump to

Keyboard shortcuts

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