Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloneOptions ¶
type GitCLIRepository ¶
type GitCLIRepository struct {
LocalPath string
}
GitCLIRepository holds the information about a repository
func NewGitCLIRepository ¶
func NewGitCLIRepository(ctx context.Context, localPath string) (*GitCLIRepository, error)
NewGitCLIRepository creates a new git repository struct with the given parameters
func (*GitCLIRepository) Clone ¶
func (gr *GitCLIRepository) Clone(ctx context.Context, options CloneOptions) error
Clone pulls the repository or clones it into the local path
type GoGitRepository ¶
GoGitRepository holds the information about a repository
func NewGoGitRepository ¶
func NewGoGitRepository(localPath string, remoteURL string) *GoGitRepository
NewGoGitRepository creates a new git repository struct with the given parameters
func (*GoGitRepository) Checkout ¶
func (gr *GoGitRepository) Checkout(tag, branch, revision string) error
Checkout certain tag, branch or hash
func (*GoGitRepository) Update ¶
func (gr *GoGitRepository) Update(merge bool) error
Update pulls the repository or clones it into the local path
Click to show internal directories.
Click to hide internal directories.