sorted

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sorted defines a type for print-friendly sorted measurements and allows sorting TPM and TDX measurements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Measurement

type Measurement struct {
	Index string
	Value []byte
}

Measurement wraps a measurement custom index and value.

func SortMeasurements added in v2.8.0

func SortMeasurements(m measurements.M, measurementType MeasurementType) []Measurement

SortMeasurements returns the sorted measurements for either TPM or TDX measurements.

type MeasurementType added in v2.8.0

type MeasurementType uint32

MeasurementType are the supported attestation types we can sort.

const (
	TPM MeasurementType = iota
	TDX
)

Available measurement types.

Jump to

Keyboard shortcuts

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