MCPcopy
hub / github.com/larksuite/cli / KeychainAccess

Interface KeychainAccess

internal/keychain/keychain.go:60–64  ·  view source on GitHub ↗

KeychainAccess abstracts keychain Get/Set/Remove for dependency injection. Used by AppSecret operations (ForStorage, ResolveSecretInput, RemoveSecretStore). UAT operations in token_store.go use the package-level Get/Set/Remove directly.

Source from the content-addressed store, hash-verified

58// Used by AppSecret operations (ForStorage, ResolveSecretInput, RemoveSecretStore).
59// UAT operations in token_store.go use the package-level Get/Set/Remove directly.
60type KeychainAccess interface {
61 Get(service, account string) (string, error)
62 Set(service, account, value string) error
63 Remove(service, account string) error
64}
65
66// Get retrieves a value from the keychain.
67// Returns empty string if the entry does not exist.

Implementers 11

noopKeychaininternal/cmdutil/testing.go
stubKeychaininternal/core/config_test.go
noopKCinternal/credential/integration_test.g
defaultKeychaininternal/keychain/default.go
noopKeychaincmd/build_api_test.go
noopConfigKeychaincmd/config/config_test.go
recordingConfigKeychaincmd/config/config_test.go
statefulKeychaincmd/config/bind_test.go
appsTestKeychainshortcuts/apps/git_credential_test.go
SecretStoreshortcuts/apps/gitcred/keychain.go
fakeKeychainshortcuts/apps/gitcred/gitcred_test.go

Calls

no outgoing calls

Tested by

no test coverage detected