MCPcopy Create free account
hub / github.com/quay/clair / Check

Method Check

middleware/auth/handler.go:47–54  ·  view source on GitHub ↗

Check implements Checker.

(ctx context.Context, r *http.Request)

Source from the content-addressed store, hash-verified

45
46// Check implements Checker.
47func (a any) Check(ctx context.Context, r *http.Request) bool {
48 for _, c := range a {
49 if ok := c.Check(ctx, r); ok {
50 return true
51 }
52 }
53 return false
54}
55
56// Fail is a Checker that always fails.
57type fail struct{}

Callers

nothing calls this directly

Calls 1

CheckMethod · 0.65

Tested by

no test coverage detected