partitioner

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDevice

func FormatDevice(runner v1.Runner, device string, fileSystem string, label string, opts ...string) error

FormatDevice formats a block device with the given parameters

func WithLogger

func WithLogger(logger sdkTypes.KairosLogger) func(d *Disk) error

Types

type Disk

type Disk struct {
	*disk.Disk
	// contains filtered or unexported fields
}

func NewDisk

func NewDisk(device string, opts ...DiskOptions) (*Disk, error)

func (*Disk) NewPartitionTable

func (d *Disk) NewPartitionTable(partType string, parts sdkTypes.PartitionList) error

type DiskOptions

type DiskOptions func(d *Disk) error

type MkfsCall

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

func NewMkfsCall

func NewMkfsCall(dev string, fileSystem string, label string, runner v1.Runner, customOpts ...string) *MkfsCall

func (MkfsCall) Apply

func (mkfs MkfsCall) Apply() (string, error)

Jump to

Keyboard shortcuts

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