package
0.4.4
Repository: https://github.com/google/go-tpm-tools.git
Documentation: pkg.go.dev

# Functions

DecodeToCEL will read the buf for CEL, will return err if the buffer is not complete.
DecodeToCELR will read the buf for the next CELR, will return err if failed to unmarshal a correct CELR TLV from the buffer.
FormatEnvVar takes in an environment variable name and its value, run some checks.
ParseEnvVar takes in environment variable as a string (foo=bar), parses it and returns its name and value, or an error if it fails the validation check.
UnmarshalFirstTLV reads and parse the first TLV from the bytes buffer.
VerifyDigests checks the digest generated by the given record's content to make sure they are equal to the digests in the digestMap.

# Constants

Type for COS nested events.
CosEventPCR is the PCR which should be used for CosEventType events.
CosEventType indicates the CELR event is a COS content TODO: the value needs to be reserved in the CEL spec.
Type for COS nested events.
Type for COS nested events.
Type for COS nested events.
Type for COS nested events.
EventContent is empty on success, or contains an error message on failure.
Type for COS nested events.
Type for COS nested events.
Type for COS nested events.
Type for COS nested events.

# Structs

CEL represents a Canonical Eventlog, which contains a list of Records.
CosTlv is a specific event type created for the COS (Google Container-Optimized OS), used as a CEL content.
Record represents a Canonical Eventlog Record.
TLV definition according to CEL spec TCG_IWG_CEL_v1_r0p37, page 16.

# Interfaces

Content is a interface for the content in CELR.

# Type aliases

CosType represent a COS content type in a CEL record content.