MCPcopy
hub / github.com/google/go-containerregistry / Keychain

Interface Keychain

pkg/authn/keychain.go:43–46  ·  view source on GitHub ↗

Keychain is an interface for resolving an image reference to a credential.

Source from the content-addressed store, hash-verified

41
42// Keychain is an interface for resolving an image reference to a credential.
43type Keychain interface {
44 // Resolve looks up the most appropriate credential for the specified target.
45 Resolve(Resource) (Authenticator, error)
46}
47
48// ContextKeychain is like Keychain, but allows for context to be passed in.
49type ContextKeychain interface {

Callers 8

TestMultiKeychainFunction · 0.65
ResolveFunction · 0.65
TestNoConfigFunction · 0.65
TestPodmanConfigFunction · 0.65
TestVariousPathsFunction · 0.65
TestConfigFileIsADirFunction · 0.65
TestRefreshingAuthFunction · 0.65

Implementers 8

defaultKeychainpkg/authn/keychain.go
wrapperpkg/authn/keychain.go
refreshingKeychainpkg/authn/keychain.go
fakeKeychainpkg/authn/keychain_test.go
multiKeychainpkg/authn/multikeychain.go
keyringpkg/authn/kubernetes/keychain.go
githubKeychainpkg/authn/github/keychain.go
googleKeychainpkg/v1/google/keychain.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…