(ctx context.Context, pn blob.Ref, attr, val string)
| 255 | } |
| 256 | |
| 257 | func (h *handler) delAttribute(ctx context.Context, pn blob.Ref, attr, val string) error { |
| 258 | ucl, err := schema.NewDelAttributeClaim(pn, attr, val).SetSigner(h.signer).JSON() |
| 259 | if err != nil { |
| 260 | return fmt.Errorf("could not create claim to delete %v:%v on %v: %v", attr, val, pn, err) |
| 261 | } |
| 262 | return h.signAndSend(ctx, ucl) |
| 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() |
no test coverage detected