MCPcopy
hub / github.com/FiloSottile/age / NewRecipient

Function NewRecipient

plugin/client.go:40–48  ·  view source on GitHub ↗
(s string, ui *ClientUI)

Source from the content-addressed store, hash-verified

38var _ age.RecipientWithLabels = &Recipient{}
39
40func NewRecipient(s string, ui *ClientUI) (*Recipient, error) {
41 name, _, err := ParseRecipient(s)
42 if err != nil {
43 return nil, err
44 }
45 return &Recipient{
46 name: name, encoding: s, ui: ui,
47 }, nil
48}
49
50// Name returns the plugin name, which is used in the recipient ("age1name1...")
51// and identity ("AGE-PLUGIN-NAME-1...") encodings, as well as in the plugin

Callers 3

TestLabelsFunction · 0.70
TestNotFoundFunction · 0.70
TestPluginErrorFunction · 0.70

Calls 1

ParseRecipientFunction · 0.70

Tested by 3

TestLabelsFunction · 0.56
TestNotFoundFunction · 0.56
TestPluginErrorFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…