Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HexString ¶
type HexString string
HexString is a hex encoded string.
func NewHexString ¶
NewHexString creates a new HexString from a byte slice.
type HexStrings ¶
type HexStrings []HexString
HexStrings is a slice of HexString.
func (*HexStrings) ByteSlices ¶
func (l *HexStrings) ByteSlices() ([][]byte, error)
ByteSlices returns the byte slice representation of the HexStrings.
type Manifest ¶
type Manifest struct { // policyHash/HOSTDATA -> commonName Policies map[HexString][]string ReferenceValues ReferenceValues WorkloadOwnerKeyDigests []HexString }
Manifest is the Coordinator manifest and contains the reference values of the deployment.
type Policy ¶
type Policy []byte
Policy is a CocCo execution policy.
func NewPolicyFromAnnotation ¶
NewPolicyFromAnnotation parses a base64 encoded policy from an annotation.
type ReferenceValues ¶
type ReferenceValues struct { SNP SNPReferenceValues // TrustedMeasurement is the hash of the trusted launch digest. TrustedMeasurement HexString }
ReferenceValues contains the workload independent reference values.
type SNPReferenceValues ¶
type SNPReferenceValues struct {
MinimumTCB SNPTCB
}
SNPReferenceValues contains reference values for the SNP report.
type SVN ¶
type SVN uint8
SVN is a SNP secure version number.
func (SVN) MarshalJSON ¶
MarshalJSON marshals the SVN to JSON.
func (*SVN) UnmarshalJSON ¶
UnmarshalJSON unmarshals the SVN from a JSON.