disks

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadFilesystem = errors.New("filesystem is not of the correct type")
)
View Source
var (
	ErrBadSgdiskOutput = errors.New("sgdisk had unexpected output")
)
View Source
var (
	ErrBadVolume = errors.New("volume is not of the correct type")
)

Functions

This section is empty.

Types

type Clevis added in v2.4.0

type Clevis struct {
	Pins      Pin `json:"pins"`
	Threshold int `json:"t"`
}

type LuksDump added in v2.15.0

type LuksDump struct {
	Config struct {
		Flags []string `json:"flags"`
	} `json:"config"`
}

type PartitionList

type PartitionList []types.Partition

Allow sorting partitions (must be a stable sort) so partition number 0 happens last regardless of where it was in the list.

func (PartitionList) Len

func (p PartitionList) Len() int

func (PartitionList) Less

func (p PartitionList) Less(i, j int) bool

We only care about partitions with number 0 being considered the "largest" elements so they are processed last.

func (PartitionList) Swap

func (p PartitionList) Swap(i, j int)

type Pin added in v2.4.0

type Pin struct {
	Tpm  bool
	Tang []Tang
}

https://github.com/latchset/clevis/blob/master/README.md#pin-shamir-secret-sharing

func (Pin) MarshalJSON added in v2.4.0

func (p Pin) MarshalJSON() ([]byte, error)

type Tang added in v2.4.0

type Tang struct {
	URL           string `json:"url"`
	Thumbprint    string `json:"thp,omitempty"`
	Advertisement any    `json:"adv,omitempty"`
}

https://github.com/latchset/clevis/blob/master/src/pins/tang/clevis-encrypt-tang.1.adoc#config

Jump to

Keyboard shortcuts

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