MCPcopy
hub / github.com/perkeep/perkeep / NewDeleteClaim

Function NewDeleteClaim

pkg/schema/schema.go:896–901  ·  view source on GitHub ↗

NewDeleteClaim creates a new claim to delete a target claim or permanode.

(target blob.Ref)

Source from the content-addressed store, hash-verified

894
895// NewDeleteClaim creates a new claim to delete a target claim or permanode.
896func NewDeleteClaim(target blob.Ref) *Builder {
897 return newClaim(&claimParam{
898 target: target,
899 claimType: DeleteClaim,
900 })
901}
902
903// ShareHaveRef is the auth type specifying that if you "have the
904// reference" (know the blobref to the haveref share blob), then you

Callers 5

DeleteMethod · 0.92
TestHandleShareDeletionFunction · 0.92
deleteFunction · 0.92
deleteNodeMethod · 0.92
TestDeleteClaimFunction · 0.85

Calls 1

newClaimFunction · 0.85

Tested by 2

TestHandleShareDeletionFunction · 0.74
TestDeleteClaimFunction · 0.68