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

Function Get

internal/keychain/keychain.go:68–71  ·  view source on GitHub ↗

Get retrieves a value from the keychain. Returns empty string if the entry does not exist.

(service, account string)

Source from the content-addressed store, hash-verified

66// Get retrieves a value from the keychain.
67// Returns empty string if the entry does not exist.
68func Get(service, account string) (string, error) {
69 val, err := platformGet(service, account)
70 return val, wrapError("Get", err)
71}
72
73// Set stores a value in the keychain, overwriting any existing entry.
74func Set(service, account, data string) error {

Callers 2

GetStoredTokenFunction · 0.92
GetMethod · 0.70

Calls 2

wrapErrorFunction · 0.85
platformGetFunction · 0.70

Tested by

no test coverage detected