Documentation ¶
Index ¶
- Constants
- func AddWorktreeFilesToTar(tw *tar.Writer, gitRepo *git.Repository) error
- func CloneInMemory(url string, opts CloneOptions) (*git.Repository, error)
- func CredentialsPaths() []*framework.Path
- func DeleteGitCredential(ctx context.Context, storage logical.Storage) error
- func ForEachWorktreeFile(gitRepo *git.Repository, ...) error
- func IsAncestor(gitRepo *git.Repository, ancestorCommit, descendantCommit string) (bool, error)
- func NewNotEnoughVerifiedPGPSignaturesError(number int) error
- func PutGitCredential(ctx context.Context, storage logical.Storage, gitCredential GitCredential) error
- func ReadWorktreeFile(gitRepo *git.Repository, path string) ([]byte, error)
- func VerifyCommitSignatures(repo *git.Repository, commit string, trustedPGPPublicKeys []string, ...) error
- func VerifyTagSignatures(repo *git.Repository, tagName string, trustedPGPPublicKeys []string, ...) error
- type CloneOptions
- type GitCredential
- type NotEnoughVerifiedPGPSignaturesError
Constants ¶
View Source
const ( FieldNameGitCredentialUsername = "username" FieldNameGitCredentialPassword = "password" StorageKeyConfigurationGitCredential = "configuration_git_credential" )
Variables ¶
This section is empty.
Functions ¶
func AddWorktreeFilesToTar ¶
func AddWorktreeFilesToTar(tw *tar.Writer, gitRepo *git.Repository) error
func CloneInMemory ¶
func CloneInMemory(url string, opts CloneOptions) (*git.Repository, error)
func CredentialsPaths ¶
func DeleteGitCredential ¶
func ForEachWorktreeFile ¶
func IsAncestor ¶
func IsAncestor(gitRepo *git.Repository, ancestorCommit, descendantCommit string) (bool, error)
func PutGitCredential ¶
func ReadWorktreeFile ¶
func ReadWorktreeFile(gitRepo *git.Repository, path string) ([]byte, error)
func VerifyCommitSignatures ¶
Types ¶
type CloneOptions ¶
type CloneOptions struct { TagName string BranchName string ReferenceName string RecurseSubmodules git.SubmoduleRescursivity Auth transport.AuthMethod }
type GitCredential ¶
type GitCredential struct { Username string `structs:"username" json:"username"` Password string `structs:"password" json:"password"` }
func GetGitCredential ¶
type NotEnoughVerifiedPGPSignaturesError ¶
type NotEnoughVerifiedPGPSignaturesError struct {
Number int
}
func (*NotEnoughVerifiedPGPSignaturesError) Error ¶
func (r *NotEnoughVerifiedPGPSignaturesError) Error() string
Click to show internal directories.
Click to hide internal directories.