MCPcopy
hub / github.com/perkeep/perkeep / Sign

Method Sign

pkg/schema/blob.go:462–464  ·  view source on GitHub ↗

Sign sets the blob builder's camliSigner field with SetSigner and returns the signed JSON using the provided signer.

(ctx context.Context, signer *Signer)

Source from the content-addressed store, hash-verified

460// Sign sets the blob builder's camliSigner field with SetSigner
461// and returns the signed JSON using the provided signer.
462func (bb *Builder) Sign(ctx context.Context, signer *Signer) (string, error) {
463 return bb.SignAt(ctx, signer, time.Time{})
464}
465
466// SignAt sets the blob builder's camliSigner field with SetSigner
467// and returns the signed JSON using the provided signer.

Callers 6

vivifyFunction · 0.45
SignJSONMethod · 0.45
TestSignerFunction · 0.45
initPublisherRootNodeMethod · 0.45
signAndSendMethod · 0.45
newPermanodeMethod · 0.45

Calls 1

SignAtMethod · 0.95

Tested by 1

TestSignerFunction · 0.36