Documentation
¶
Overview ¶
Package fallback fetches an existing latest Scorecard result from an upstream Scorecard API (e.g. api.scorecard.dev) over the same /projects GET contract this server exposes (design F8). It is best-effort and read-only: a missing or too-old result, or any transport error, is reported so the orchestrator can fall through to a live scan.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFallbackMiss = errors.New("fallback: no usable upstream result")
ErrFallbackMiss means the upstream has no usable result for the repository — either no result at all, or one older than the configured maximum age. The orchestrator treats it as "fall through", distinct from a fetch error.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client fetches results from an upstream Scorecard API over the /projects contract.
func NewClient ¶
NewClient builds a Client for baseURL (e.g. "https://api.scorecard.dev"). timeout bounds a single fetch; maxAge bounds how old an upstream result may be.