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 {
| 31 | // return openpgp.ArmoredDetachSign(w, openpgpEntity, r, nil) |
| 32 | // }) |
| 33 | type MessageSigner interface { |
| 34 | Sign(w io.Writer, r io.Reader) error |
| 35 | } |
| 36 | |
| 37 | // MessageSignerFunc is a single function implementation of MessageSigner. |
| 38 | type MessageSignerFunc func(w io.Writer, r io.Reader) error |
no outgoing calls
no test coverage detected
searching dependent graphs…