Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommitSignature ¶
CreateCommitSignature reads the given signing key and produces PKCS#7 detached signature. When the path to the signing key is not present, an empty signature is returned.
func OpenRepository ¶
func OpenRepository(path string) (*git.Repository, error)
OpenRepository opens the repository located at path as a Git2Go repository.
Types ¶
type CommitSubmitter ¶
type CommitSubmitter struct { Repo *git.Repository SigningKeyPath string }
CommitSubmitter is the helper struct to make signed Commits conveniently.
func NewCommitSubmitter ¶
func NewCommitSubmitter(repo *git.Repository, signingKeyPath string) *CommitSubmitter
NewCommitSubmitter creates a new CommitSubmitter.
Click to show internal directories.
Click to hide internal directories.