{"modulePath":"github.com/utmstack/UTMStack/installer","version":"v0.0.0-20261203180808-4d12b9be42b1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package system\n\n## Constants\n\n```go\nconst (\n\tSYSTEM_RESERVED_MEMORY = 1 * 1000\n)\n```\n\n## Functions\n\n```go\nfunc BalanceMemory(services []ServiceConfig, totalSystemMemory int) (map[string]*ServiceConfig, error)\n```\n\n```go\nfunc CheckCPU(cores int) error\n```\n\n```go\nfunc CheckDisk(size uint64) error\n```\n\n```go\nfunc CheckDistro() (string, error)\n```\n\n```go\nfunc CheckMem(size uint64) error\n```\n\n```go\nfunc GetOddValue(value int) int\n```\n\n```go\nfunc InstallTools(distro string) error\n```\n\n```go\nfunc PrepareKernel() error\n```\n\n```go\nfunc PrepareSystem(distro string) error\n```\n\n```go\nfunc ValidateMemoryAllocation(rsrcs map[string]*ServiceConfig, services []ServiceConfig, totalSystemMemory int) error\n```\nValidateMemoryAllocation checks a persisted allocation against the service contract. totalSystemMemory is the raw system total, the same contract BalanceMemory takes.\n\n```go\nfunc VerifyAirGapPrerequisites() error\n```\n\n## Types\n\n```go\ntype ServiceConfig struct {\n\tName           string\n\tPriority       int\n\tAssignedMemory int\n\tMinMemory      int\n\tMaxMemory      int\n}\n```\n\n","path":"github.com/utmstack/UTMStack/installer/system","name":"system","synopsis":"","isRedistributable":true}
