MCPcopy
hub / github.com/ossf/scorecard / CIIBestPracticesClient

Interface CIIBestPracticesClient

clients/cii_client.go:66–68  ·  view source on GitHub ↗

CIIBestPracticesClient interface returns the BadgeLevel for a repo URL.

Source from the content-addressed store, hash-verified

64
65// CIIBestPracticesClient interface returns the BadgeLevel for a repo URL.
66type CIIBestPracticesClient interface {
67 GetBadgeLevel(ctx context.Context, uri string) (BadgeLevel, error)
68}
69
70// DefaultCIIBestPracticesClient returns http-based implementation of the interface.
71func DefaultCIIBestPracticesClient() CIIBestPracticesClient {

Callers 3

TestCIIBestPracticesFunction · 0.65
CIIBestPracticesFunction · 0.65

Implementers 4

blobClientCIIBestPracticesclients/cii_blob_client.go
httpClientCIIBestPracticesclients/cii_http_client.go
MockCIIBestPracticesClientclients/mockclients/cii_client.go
MockCIIBestPracticesClientMockRecorderclients/mockclients/cii_client.go

Calls

no outgoing calls

Tested by

no test coverage detected