Documentation ¶
Index ¶
- type Repository
- func (repo *Repository) Build() Repository
- func (repo *Repository) CheckOutTag() error
- func (repo *Repository) Clone() error
- func (repo *Repository) GetTag() (*plumbing.Reference, error)
- func (repo *Repository) SetCloneOptions(cloneOptions git.CloneOptions) RepositoryBuilder
- func (repo *Repository) SetGitRepo(gitRepo *git.Repository) RepositoryBuilder
- func (repo *Repository) SetPath(path string) RepositoryBuilder
- func (repo *Repository) SetTagName(tagName string) RepositoryBuilder
- type RepositoryBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository data structure to represent a repository information
func (*Repository) Build ¶
func (repo *Repository) Build() Repository
Build build a Repository instance
func (*Repository) Clone ¶
func (repo *Repository) Clone() error
Clone clones a repo based on a given url and a path
func (*Repository) GetTag ¶
func (repo *Repository) GetTag() (*plumbing.Reference, error)
GetTag get a repo tag reference based on a given tag name
func (*Repository) SetCloneOptions ¶
func (repo *Repository) SetCloneOptions(cloneOptions git.CloneOptions) RepositoryBuilder
SetCloneOptions set git clone options
func (*Repository) SetGitRepo ¶
func (repo *Repository) SetGitRepo(gitRepo *git.Repository) RepositoryBuilder
SetGitRepo set git repo
func (*Repository) SetPath ¶
func (repo *Repository) SetPath(path string) RepositoryBuilder
SetPath set repo path
func (*Repository) SetTagName ¶
func (repo *Repository) SetTagName(tagName string) RepositoryBuilder
SetTagName set the git repo tag name
type RepositoryBuilder ¶
type RepositoryBuilder interface { SetPath(string) RepositoryBuilder SetCloneOptions(git.CloneOptions) RepositoryBuilder SetGitRepo(*git.Repository) RepositoryBuilder SetTagName(string) RepositoryBuilder Build() Repository }
RepositoryBuilder repository builder interface
Click to show internal directories.
Click to hide internal directories.