storage

package
v0.13.8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DiskPrefixToIgnore disks with this prefix will not be reported and wiped.
	DiskPrefixToIgnore = "ram"
)

Functions

func FetchBlockIDProperties added in v0.5.0

func FetchBlockIDProperties(partitionDevice string) (map[string]string, error)

FetchBlockIDProperties use blkid to return more properties of the given partition device

Types

type Disks added in v0.9.6

type Disks struct {
	// contains filtered or unexported fields
}

func NewDisks added in v0.9.6

func NewDisks(log *slog.Logger) *Disks

func (*Disks) Wipe added in v0.9.6

func (d *Disks) Wipe() error

WipeDisks will erase all content and partitions of all existing Disks

type Filesystem added in v0.8.1

type Filesystem struct {
	RootUUID string
	// contains filtered or unexported fields
}

func New added in v0.8.1

func New(log *slog.Logger, chroot string, config models.V1FilesystemLayoutResponse) *Filesystem

func (*Filesystem) CreateFSTab added in v0.8.1

func (f *Filesystem) CreateFSTab() error

func (*Filesystem) Run added in v0.8.1

func (f *Filesystem) Run() error

func (*Filesystem) Umount added in v0.8.1

func (f *Filesystem) Umount()

Jump to

Keyboard shortcuts

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