MCPcopy Index your code
hub / github.com/google/go-github / MessageSigner

Interface MessageSigner

github/git_commits.go:33–35  ·  view source on GitHub ↗

MessageSigner is used by GitService.CreateCommit to sign a commit. To create a MessageSigner that signs a commit with a [golang.org/x/crypto/openpgp.Entity], or [github.com/ProtonMail/go-crypto/openpgp.Entity], use: commit.Signer = github.MessageSignerFunc(func(w io.Writer, r io.Reader) error {

Source from the content-addressed store, hash-verified

31// return openpgp.ArmoredDetachSign(w, openpgpEntity, r, nil)
32// })
33type MessageSigner interface {
34 Sign(w io.Writer, r io.Reader) error
35}
36
37// MessageSignerFunc is a single function implementation of MessageSigner.
38type MessageSignerFunc func(w io.Writer, r io.Reader) error

Callers 1

createSignatureFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…