storage

package
v1.9.4-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GB uint64 = 1024 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NimoOSRecommendedPaths

type NimoOSRecommendedPaths struct {
	Docker     string `json:"docker"`
	AppData    string `json:"appData"`
	UserData   string `json:"userData"`
	SystemData string `json:"systemData"`
}

func RecommendStoragePaths

func RecommendStoragePaths() NimoOSRecommendedPaths

RecommendStoragePaths calculates the optimal storage default paths dynamically

type Partition

type Partition struct {
	MountPoint string
	TotalSpace uint64 // bytes
	FreeSpace  uint64 // bytes
}

func GetPhysicalPartitions

func GetPhysicalPartitions() []Partition

GetPhysicalPartitions parses /proc/mounts and uses syscall.Statfs to report physical disk partitions space.

Jump to

Keyboard shortcuts

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