MCPcopy
hub / github.com/perkeep/perkeep / PathsOfSignerTarget

Method PathsOfSignerTarget

pkg/index/interface.go:127–127  ·  view source on GitHub ↗

PathsOfSignerTarget queries the index about "camliPath:" URL-dispatch attributes. It returns a list of all the path claims that have been signed by the provided signer and point at the given target. This is used when editing a permanode, to figure work up the name resolution tree backwards ultimat

(ctx context.Context, signer, target blob.Ref)

Source from the content-addressed store, hash-verified

125 // camliRoot permanode (which should know its base URL), and
126 // then the complete URL(s) of a target can be found.
127 PathsOfSignerTarget(ctx context.Context, signer, target blob.Ref) ([]*camtypes.Path, error)
128
129 // All Path claims for (signer, base, suffix)
130 PathsLookup(ctx context.Context, signer, base blob.Ref, suffix string) ([]*camtypes.Path, error)

Callers 2

GetSignerPathsMethod · 0.65
PathsOfSignerTargetFunction · 0.65

Implementers 1

Indexpkg/index/index.go

Calls

no outgoing calls

Tested by

no test coverage detected