Versions in this module Expand all Collapse all v0 v0.2.0 Jul 27, 2026 Changes in this version + const DefaultMaxBlobBytes + const DefaultRefreshInterval + const DefaultSource + var ErrFetch = errors.New("fetch MDS blob") + var ErrInvalidAAGUID = errors.New("invalid AAGUID") + var ErrVerify = errors.New("verify MDS blob") + func AssessAttestation(evidence AttestationEvidence, metadata model.LookupResult, ...) model.AttestationTrustAssessment + type AttestationEvidence struct + AAGUID uuid.UUID + CertificateChain [][]byte + Type AttestationType + type AttestationType string + const AttestationTypeBasic + const AttestationTypeNone + const AttestationTypeSelf + const AttestationTypeUnsupported + type Blob struct + CachedAt time.Time + Entries map[uuid.UUID]*appmds.PayloadEntry + IssuedAt time.Time + Number uint64 + type Cache interface + Get func(source string) (*Blob, bool) + Refresh func(context.Context, string, func() (*Blob, bool, error)) (*Blob, bool, error) + Set func(source string, blob *Blob) + func NewCache() Cache + type Client struct + Cache Cache + CacheDir string + HTTPClient *http.Client + MaxBlobBytes int64 + Now func() time.Time + Source string + TrustAnchors []*x509.Certificate + func NewClient(options ...Option) *Client + func (c *Client) Lookup(ctx context.Context, aaguid uuid.UUID, opts LookupOptions) (appmds.LookupResult, error) + type HTTPStatusError struct + StatusCode int + func (e *HTTPStatusError) Error() string + func (e *HTTPStatusError) Unwrap() error + type LookupOptions struct + Refresh bool + type Option func(*Client) + func WithCacheDir(dir string) Option v0.1.0 Jul 27, 2026