(ctx context.Context, pn blob.Ref, attr, val string)
| 247 | } |
| 248 | |
| 249 | func (h *handler) setAttribute(ctx context.Context, pn blob.Ref, attr, val string) error { |
| 250 | ucl, err := schema.NewSetAttributeClaim(pn, attr, val).SetSigner(h.signer).JSON() |
| 251 | if err != nil { |
| 252 | return fmt.Errorf("could not create claim to set %v:%v on %v: %v", attr, val, pn, err) |
| 253 | } |
| 254 | return h.signAndSend(ctx, ucl) |
| 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() |
no test coverage detected