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 ¶
func (*ClassAttributes) FromEnvironment ¶
func (o *ClassAttributes) FromEnvironment(e comid.Environment) error
extract mandatory ImplID and optional vendor & model
type InstanceAttributes ¶
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)
Click to show internal directories.
Click to hide internal directories.