Documentation ¶
Index ¶
- func CloneRepo(token string, codeSource *api.CodeSource, ref string, folder string) (string, error)
- func CloneRepos(token string, codeSources *api.CodeCheckoutStage, ref string) (string, error)
- func GetCloneDir() string
- func GetCommitID(codeSource *api.CodeSource, folder string) (string, error)
- func GetCommitLog(codeSource *api.CodeSource, folder string) (api.CommitLog, error)
- func GetRepoName(codeSource *api.CodeSource) (string, error)
- func RegisterProvider(scmType api.SCMType, provider SCMProvider) error
- type SCMProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepos ¶
CloneRepo represents clone main repo and dep repos.
func GetCommitID ¶
func GetCommitID(codeSource *api.CodeSource, folder string) (string, error)
func GetCommitLog ¶
func GetRepoName ¶
func GetRepoName(codeSource *api.CodeSource) (string, error)
func RegisterProvider ¶
func RegisterProvider(scmType api.SCMType, provider SCMProvider) error
RegisterProvider registers SCM providers.
Types ¶
type SCMProvider ¶
type SCMProvider interface { Clone(token, url, ref, destPath string) (string, error) GetCommitID(repoPath string) (string, error) GetCommitLog(repoPath string) api.CommitLog }
func GetSCMProvider ¶
func GetSCMProvider(scmType api.SCMType) (SCMProvider, error)
GetSCMProvider gets the SCM provider by the type.
Click to show internal directories.
Click to hide internal directories.