partitions

package
v0.0.0-...-cd881a2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// device path in /dev
	Device string

	// partition delimiter
	Delimiter string

	// partition numbers
	ActiveKernelNum   int
	ActiveRootfsNum   int
	InactiveKernelNum int
	InactiveRootfsNum int
}

State of the device.

func GetStateFromRootPartition

func GetStateFromRootPartition(rootPart string) (State, error)

func (*State) ActiveKernel

func (p *State) ActiveKernel() string

func (*State) ActiveRootfs

func (p *State) ActiveRootfs() string

func (*State) InactiveKernel

func (p *State) InactiveKernel() string

func (*State) InactiveRootfs

func (p *State) InactiveRootfs() string

Jump to

Keyboard shortcuts

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