(name string, ui *ClientUI)
| 188 | } |
| 189 | |
| 190 | func 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 |
no test coverage detected
searching dependent graphs…