MCPcopy
hub / github.com/perkeep/perkeep / NewDelAttributeClaim

Function NewDelAttributeClaim

pkg/schema/schema.go:886–893  ·  view source on GitHub ↗

NewDelAttributeClaim creates a new claim to remove value from the values set for the attribute attr of permaNode. If value is empty then all the values for attribute are cleared.

(permaNode blob.Ref, attr, value string)

Source from the content-addressed store, hash-verified

884// values set for the attribute attr of permaNode. If value is empty then
885// all the values for attribute are cleared.
886func NewDelAttributeClaim(permaNode blob.Ref, attr, value string) *Builder {
887 return newClaim(&claimParam{
888 permanode: permaNode,
889 claimType: DelAttributeClaim,
890 attribute: attr,
891 value: value,
892 })
893}
894
895// NewDeleteClaim creates a new claim to delete a target claim or permanode.
896func NewDeleteClaim(target blob.Ref) *Builder {

Callers 10

DelAttrMethod · 0.92
SetAttrValuesMethod · 0.92
handlerDescribeTestSetupFunction · 0.92
DelAttributeMethod · 0.92
removeMethod · 0.92
RemoveMethod · 0.92
RemoveMethod · 0.92
RenameMethod · 0.92
delAttributeMethod · 0.92
TestAttributeFunction · 0.85

Calls 1

newClaimFunction · 0.85

Tested by 2

handlerDescribeTestSetupFunction · 0.74
TestAttributeFunction · 0.68