Documentation ¶
Index ¶
- type Git
- type GitRepo
- type GitRepoStruct
- func (u *GitRepoStruct) GetBranch() string
- func (u *GitRepoStruct) GetCloneURL() *url.URL
- func (u *GitRepoStruct) GetLocalPath() string
- func (u *GitRepoStruct) GetName() string
- func (u *GitRepoStruct) GetTag() string
- func (u *GitRepoStruct) SetBranch(b string)
- func (u *GitRepoStruct) SetLocalPath(p string)
- func (u *GitRepoStruct) SetTag(t string)
- type GoGit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitRepo ¶
type GitRepoStruct ¶
type GitRepoStruct struct { // CloneURL is the URL that will be used for cloning the repo CloneURL *url.URL RepositoryName string // GitBranch is the referenced Git branch name. GitBranch string // Tag name - either tag or branch should be set. Tag string LocalRepoPath string }
GitRepoStruct is a struct that contains all the fields required for a GitRepo instance.
func (*GitRepoStruct) GetBranch ¶
func (u *GitRepoStruct) GetBranch() string
GetBranch returns the referenced Git branch name. the empty string is returned otherwise.
func (*GitRepoStruct) GetCloneURL ¶
func (u *GitRepoStruct) GetCloneURL() *url.URL
GetCloneURL returns the CloneURL of the repository.
func (*GitRepoStruct) GetLocalPath ¶
func (u *GitRepoStruct) GetLocalPath() string
func (*GitRepoStruct) GetName ¶
func (u *GitRepoStruct) GetName() string
GetName returns the repository name.
func (*GitRepoStruct) GetTag ¶
func (u *GitRepoStruct) GetTag() string
func (*GitRepoStruct) SetBranch ¶
func (u *GitRepoStruct) SetBranch(b string)
func (*GitRepoStruct) SetLocalPath ¶
func (u *GitRepoStruct) SetLocalPath(p string)
func (*GitRepoStruct) SetTag ¶
func (u *GitRepoStruct) SetTag(t string)
Click to show internal directories.
Click to hide internal directories.