Documentation
¶
Index ¶
- Variables
- type GitRepo
- func (gr *GitRepo) Clone() error
- func (gr *GitRepo) CloneOptions() *git.CloneOptions
- func (gr *GitRepo) CloneOrPull() error
- func (gr *GitRepo) EnsurePath() error
- func (gr *GitRepo) LatestSHA(length int) string
- func (gr *GitRepo) Open()
- func (gr *GitRepo) Pull() error
- func (gr *GitRepo) PullOptions() *git.PullOptions
- func (gr *GitRepo) ReferenceName() plumbing.ReferenceName
- func (gr *GitRepo) RevisionExists(revName string) bool
- func (gr *GitRepo) SetKeys(privateKey []byte) error
- func (gr GitRepo) Worktree() *git.Worktree
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger zerolog.Logger
Functions ¶
This section is empty.
Types ¶
type GitRepo ¶
type GitRepo struct { URL string Path string BranchName string Repo *git.Repository PublicKeys *gitssh.PublicKeys }
func (*GitRepo) CloneOptions ¶
func (gr *GitRepo) CloneOptions() *git.CloneOptions
func (*GitRepo) CloneOrPull ¶
func (*GitRepo) EnsurePath ¶
func (*GitRepo) PullOptions ¶
func (gr *GitRepo) PullOptions() *git.PullOptions
func (*GitRepo) ReferenceName ¶
func (gr *GitRepo) ReferenceName() plumbing.ReferenceName
func (*GitRepo) RevisionExists ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.