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

Function NewIdentityWithoutData

plugin/client.go:190–198  ·  view source on GitHub ↗
(name string, ui *ClientUI)

Source from the content-addressed store, hash-verified

188}
189
190func NewIdentityWithoutData(name string, ui *ClientUI) (*Identity, error) {
191 s := EncodeIdentity(name, nil)
192 if s == "" {
193 return nil, fmt.Errorf("invalid plugin name: %q", name)
194 }
195 return &Identity{
196 name: name, encoding: s, ui: ui,
197 }, nil
198}
199
200// Name returns the plugin name, which is used in the recipient ("age1name1...")
201// and identity ("AGE-PLUGIN-NAME-1...") encodings, as well as in the plugin

Callers 2

encryptNotPassFunction · 0.92
decryptNotPassFunction · 0.92

Calls 1

EncodeIdentityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…