Documentation
¶
Overview ¶
Package provenance checks registry-provided provenance signals for exact package versions without depending on CLI or database concerns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
Lookup(context.Context, Dependency) Result
}
Checker checks provenance for exact dependency versions.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client dispatches provenance lookups to ecosystem-specific checkers.
func NewClientWithHTTPClient ¶
func NewClientWithHTTPClient(userAgent string, httpClient HTTPClient) *Client
NewClientWithHTTPClient creates a provenance client using the provided HTTP client.
type Dependency ¶
Dependency identifies one exact package version to inspect.
type HTTPClient ¶
HTTPClient is the subset of http.Client used for registry requests.
type Result ¶
type Result struct {
Status Status
TrustedPublishing bool
RegistrySignatures int
Evidence []string
Error string
}
Result contains the registry signal and any supporting evidence.
Click to show internal directories.
Click to hide internal directories.