Versions in this module Expand all Collapse all v0 v0.1.0 Oct 21, 2026 Changes in this version + const DefaultMaxCertificates + const DefaultMaxDepth + const DefaultMaxDiagnostics + const DefaultMaxEntries + const DefaultMaxExpandedBytes + const DefaultMaxFileBytes + const DefaultMaxInputBytes + var ErrLimit = errors.New("scan resource limit exceeded") + type Certificate struct + BasicConstraints bool + IsCA bool + Issuer string + NotAfter time.Time + NotBefore time.Time + SHA256 string + SPKISHA256 string + Serial string + Subject string + type Collection struct + Complete bool + Format string + Integrity string + Location []Member + Matches []Match + Occurrences []Occurrence + SHA256 string + SetSHA256 string + type Diagnostic struct + Code string + Location []Member + Message string + type Inventory struct + Certificates []Certificate + Collections []Collection + Complete bool + Diagnostics []Diagnostic + Files int + Path string + SHA256 string + Size int64 + func Scan(ctx context.Context, name string, input io.Reader, options Options) (*Inventory, error) + func ScanFile(ctx context.Context, path string, options Options) (*Inventory, error) + type Match struct + Additional []string + Kind string + Missing []string + Name string + Shared int + Source string + func MatchCollection(collection Collection, references []Reference) []Match + type Member struct + Entry int + Path string + type Occurrence struct + Alias string + EntryType string + Offset *int64 + SHA256 string + TrustOIDs []string + type Options struct + Catalog *PreparedCatalog + MaxCertificates int + MaxDepth int + MaxDiagnostics int + MaxEntries int + MaxExpandedBytes int64 + MaxFileBytes int64 + MaxInputBytes int64 + type PreparedCatalog struct + func PrepareCatalog(references []Reference) (*PreparedCatalog, error) + func (c *PreparedCatalog) MatchCollection(collection Collection) []Match + type Reference struct + Certificates []string + Name string + SHA256 string + Source string + func DefaultCatalog() []Reference