Documentation ¶
Overview ¶
Package gpg provides an interface and an abstraction with which to sign and verify review requests and comments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sig ¶
type Sig struct { // Sig holds an object's content's signature. Sig string `json:"signature,omitempty"` }
Sig provides an abstraction around shelling out to GPG to sign the content it's given.
type Signable ¶
type Signable interface {
Signature() *string
}
Signable is an interfaces which provides the pointer to the signable object's stringified signature.
This pointer is used by `Sign` and `Verify` to replace its contents with `placeholder` or the signature itself for the purposes of signing or verifying.
Click to show internal directories.
Click to hide internal directories.