Internal
internal/adapters/trustcheck
Package trustcheck adapts trusted-key files to the session replay trust port.
import "github.com/nilstate/scafld/v2/internal/adapters/trustcheck"
Package trustcheck adapts trusted-key files to the session replay trust port.
Functions
func FromFile(path string) Checker
Source: internal/adapters/trustcheck/checker.go:22
FromFile returns a checker for path. Read or parse failures are retained and reported only if replay actually encounters a receipt entry.
func FromRoot(root string, configuredPath string) Checker
Source: internal/adapters/trustcheck/checker.go:35
FromRoot resolves configuredPath below root unless it is absolute.
Types
type Checker
Source: internal/adapters/trustcheck/checker.go:15
Checker validates receipt signatures against trusted-key lifecycle metadata.
type Checker struct {
Keys trust.TrustedKeys
LoadErr error
}Fields
Keys trust.TrustedKeysLoadErr error
func CheckReceiptTrust(envelope receipt.Envelope) error
Source: internal/adapters/trustcheck/checker.go:50
CheckReceiptTrust implements session.ReceiptTrustChecker.
