MCPcopy
hub / github.com/perkeep/perkeep / NewShareRef

Function NewShareRef

pkg/schema/schema.go:857–863  ·  view source on GitHub ↗

NewShareRef creates a *Builder for a "share" claim.

(authType string, transitive bool)

Source from the content-addressed store, hash-verified

855
856// NewShareRef creates a *Builder for a "share" claim.
857func NewShareRef(authType string, transitive bool) *Builder {
858 return newClaim(&claimParam{
859 claimType: ShareClaim,
860 authType: authType,
861 transitive: transitive,
862 })
863}
864
865func NewSetAttributeClaim(permaNode blob.Ref, attr, value string) *Builder {
866 return newClaim(&claimParam{

Callers 9

TestHandleGetViaSharingFunction · 0.92
TestHandleShareDeletionFunction · 0.92
RunCommandMethod · 0.92
TestAsClaimAndAsShareFunction · 0.85
TestClaimDateFunction · 0.85

Calls 1

newClaimFunction · 0.85

Tested by 8

TestHandleGetViaSharingFunction · 0.74
TestHandleShareDeletionFunction · 0.74
TestAsClaimAndAsShareFunction · 0.68
TestClaimDateFunction · 0.68