MCPcopy Create free account
hub / github.com/anchordotdev/cli / Set

Method Set

keyring/keyring.go:56–65  ·  view source on GitHub ↗
(id label, secret string)

Source from the content-addressed store, hash-verified

54}
55
56func (k *Keyring) Set(id label, secret string) error {
57 k.init()
58
59 u, err := user.Current()
60 if err != nil {
61 return err
62 }
63
64 return keyring.Set(k.service(id), u.Username, secret)
65}
66
67func (k *Keyring) service(id label) string {
68 url := k.Config.API.URL

Callers 9

RunTUIMethod · 0.95
TestKeyringFunction · 0.95
applyReadonlyOptionFunction · 0.80
CreatePATTokenMethod · 0.80
SubCAFunction · 0.80
getMethod · 0.80
postMethod · 0.80
RoundTripperMethod · 0.80
api.goFile · 0.80

Calls 2

initMethod · 0.95
serviceMethod · 0.95

Tested by 1

TestKeyringFunction · 0.76