(ctx context.Context, pn blob.Ref, attr, val string)
| 263 | } |
| 264 | |
| 265 | func (h *handler) addAttribute(ctx context.Context, pn blob.Ref, attr, val string) error { |
| 266 | ucl, err := schema.NewAddAttributeClaim(pn, attr, val).SetSigner(h.signer).JSON() |
| 267 | if err != nil { |
| 268 | return fmt.Errorf("could not create claim to add %v:%v on %v: %v", attr, val, pn, err) |
| 269 | } |
| 270 | return h.signAndSend(ctx, ucl) |
| 271 | } |
| 272 | |
| 273 | func (h *handler) deleteNode(ctx context.Context, node blob.Ref) error { |
| 274 | ucl, err := schema.NewDeleteClaim(node).SetSigner(h.signer).JSON() |
no test coverage detected