platform

package
v0.0.2501 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2022-2024 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Copyright 2022-2024 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Copyright 2022-2024 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassAttributes

type ClassAttributes struct {
	ImplID []byte
	Vendor string
	Model  string
}

func (*ClassAttributes) FromEnvironment

func (o *ClassAttributes) FromEnvironment(e comid.Environment) error

extract mandatory ImplID and optional vendor & model

type InstanceAttributes

type InstanceAttributes struct {
	InstID eat.UEID
}

func (*InstanceAttributes) FromEnvironment

func (o *InstanceAttributes) FromEnvironment(e comid.Environment) error

type MeasurementExtractor

type MeasurementExtractor interface {
	FromMeasurement(comid.Measurement) error
	GetRefValType() string
	// MakeRefAttrs is an interface method to populate reference attributes.
	MakeRefAttrs(ClassAttributes) (json.RawMessage, error)
}

MeasurementExtractor is an interface to extract measurements from comid to construct Reference Value Endorsements using Reference Value type

type SwCompAttributes

type SwCompAttributes struct {
	MeasurementType  string
	Version          string
	SignerID         []byte
	AlgID            string
	MeasurementValue []byte
}

func (*SwCompAttributes) FromMeasurement

func (o *SwCompAttributes) FromMeasurement(m comid.Measurement) error

func (SwCompAttributes) GetRefValType

func (o SwCompAttributes) GetRefValType() string

func (*SwCompAttributes) MakeRefAttrs

func (o *SwCompAttributes) MakeRefAttrs(c ClassAttributes) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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