Documentation ¶
Index ¶
- type Builder
- type Repository
- func (repo *Repository) Build() Repository
- func (repo *Repository) CheckOutTag() error
- func (repo *Repository) Clone() error
- func (repo *Repository) CloneInMemory() error
- func (repo *Repository) GetTag() (*plumbing.Reference, error)
- func (repo *Repository) GetTreeEntries() []object.TreeEntry
- func (repo *Repository) SetCloneOptions(cloneOptions git.CloneOptions) Builder
- func (repo *Repository) SetGitRepo(gitRepo *git.Repository) Builder
- func (repo *Repository) SetPath(path string) Builder
- func (repo *Repository) SetTagName(tagName string) Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { SetPath(string) Builder SetCloneOptions(git.CloneOptions) Builder SetGitRepo(*git.Repository) Builder SetTagName(string) Builder Build() Repository }
Builder repository builder interface
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) CheckOutTag ¶
func (repo *Repository) CheckOutTag() error
CheckOutTag check out a repo based on the given tag name
func (*Repository) Clone ¶
func (repo *Repository) Clone() error
Clone clones a repo based on a given url and a path
func (*Repository) CloneInMemory ¶
func (repo *Repository) CloneInMemory() error
CloneInMemory clones a repo in a memory storage
func (*Repository) GetTag ¶
func (repo *Repository) GetTag() (*plumbing.Reference, error)
GetTag get a repo tag reference based on a given tag name
func (*Repository) GetTreeEntries ¶
func (repo *Repository) GetTreeEntries() []object.TreeEntry
GetTreeEntries get repo top level tree entries
func (*Repository) SetCloneOptions ¶
func (repo *Repository) SetCloneOptions(cloneOptions git.CloneOptions) Builder
SetCloneOptions set git clone options
func (*Repository) SetGitRepo ¶
func (repo *Repository) SetGitRepo(gitRepo *git.Repository) Builder
SetGitRepo set git repo
func (*Repository) SetPath ¶
func (repo *Repository) SetPath(path string) Builder
SetPath set repo path
func (*Repository) SetTagName ¶
func (repo *Repository) SetTagName(tagName string) Builder
SetTagName set the git repo tag name
Click to show internal directories.
Click to hide internal directories.