MCPcopy Create free account
hub / github.com/cortexproject/cortex / VerifySign

Method VerifySign

pkg/cortexpb/extensions.go:60–63  ·  view source on GitHub ↗
(ctx context.Context, signature string)

Source from the content-addressed store, hash-verified

58}
59
60func (w *WriteRequest) VerifySign(ctx context.Context, signature string) (bool, error) {
61 s, err := w.Sign(ctx)
62 return s == signature, err
63}
64
65func (w *WriteRequest) Sign(ctx context.Context) (string, error) {
66 u, err := users.TenantID(ctx)

Callers

nothing calls this directly

Calls 1

SignMethod · 0.95

Tested by

no test coverage detected