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

Interface TokenAccessor

clients/githubrepo/roundtripper/tokens/accessor.go:32–35  ·  view source on GitHub ↗

TokenAccessor interface defines a `retrieve-once` data structure. Implementations of this interface must be thread-safe.

Source from the content-addressed store, hash-verified

30// TokenAccessor interface defines a `retrieve-once` data structure.
31// Implementations of this interface must be thread-safe.
32type TokenAccessor interface {
33 Next() (uint64, string)
34 Release(uint64)
35}
36
37var logDuplicateTokenWarning = func(firstName string, clashingName string) {
38 var stringBuilder strings.Builder

Callers 9

ListCommitsMethod · 0.65
extractTarballMethod · 0.65
RoundTripMethod · 0.65
NextMethod · 0.65
TestNextFunction · 0.65
extractTarballMethod · 0.65
RoundTripMethod · 0.65
ReleaseMethod · 0.65
TestNextFunction · 0.65

Implementers 4

roundRobinAccessorclients/githubrepo/roundtripper/tokens
mockTokenAccessorclients/githubrepo/roundtripper/tokens
TokenOverRPCclients/githubrepo/roundtripper/tokens
rpcAccessorclients/githubrepo/roundtripper/tokens

Calls

no outgoing calls

Tested by

no test coverage detected