Documentation ¶
Index ¶
- type Fake
- func (f *Fake) CheckOutByCommitID(commitID string, repoPath string, event *api.Event) error
- func (f *Fake) CheckoutTag(repoPath string, tag string) error
- func (f *Fake) CloneRepo(url, destPath string, event *api.Event) error
- func (f *Fake) GetTagCommit(repoPath string, tag string) (string, error)
- func (f *Fake) NewTagFromLatest(repoPath string, event *api.Event) error
- type Git
- func (g *Git) CheckOutByCommitID(commitID string, repoPath string, event *api.Event) error
- func (g *Git) CheckoutTag(repoPath string, tag string) error
- func (g *Git) CloneRepo(url, destPath string, event *api.Event) error
- func (g *Git) GetTagCommit(repoPath string, tag string) (string, error)
- func (g *Git) NewTagFromLatest(repoPath string, event *api.Event) error
- type Svn
- func (s *Svn) CheckOutByCommitID(commitID string, repoPath string, event *api.Event) error
- func (s *Svn) CheckoutTag(repoPath string, tag string) error
- func (s *Svn) CloneRepo(url, destPath string, event *api.Event) error
- func (s *Svn) GetTagCommit(repoPath string, tag string) (string, error)
- func (s *Svn) IsCommitToSpecialURL(commitID string, service *api.Service) (bool, string, error)
- func (s *Svn) NewTagFromLatest(repoPath string, event *api.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake is the type for fake(local file system) vcs provider.
func (*Fake) CheckOutByCommitID ¶
CheckOutByCommitID check out code in repo by special commit id.
func (*Fake) CheckoutTag ¶
CheckoutTag checkout to given tag.
func (*Fake) GetTagCommit ¶
GetTagCommit finds commit/revision hash of a given tag.
type Git ¶
type Git struct{}
Git is the type for git provider.
func (*Git) CheckOutByCommitID ¶
CheckOutByCommitID checks out code in repo by special commit id.
func (*Git) CheckoutTag ¶
CheckoutTag implements VCS interface.
func (*Git) GetTagCommit ¶
GetTagCommit implements VCS interface.
type Svn ¶
type Svn struct{}
Svn is the type for svn provider.
func (*Svn) CheckOutByCommitID ¶
CheckOutByCommitID check out code in repo by special commit id.
func (*Svn) CheckoutTag ¶
CheckoutTag implements VCS interface.
func (*Svn) GetTagCommit ¶
GetTagCommit implements VCS interface.
func (*Svn) IsCommitToSpecialURL ¶
IsCommitToSpecialURL gets if the commit is to a specific url.
Click to show internal directories.
Click to hide internal directories.