Documentation
¶
Index ¶
- Variables
- func CloneRepo(repoURL, repoPath string, logger logger.LoggerInterface) error
- func DefaultCloneOrUpdate(repoURL, repoPath string, logger logger.LoggerInterface) error
- func DefaultUpdateRepo(repoPath string, logger logger.LoggerInterface) error
- func ForceReclone(repoURL, repoPath string, logger logger.LoggerInterface) error
- func IsValidGitRepo(repoPath string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CloneOrUpdate = DefaultCloneOrUpdate UpdateRepo = DefaultUpdateRepo CloneRepoFunc = CloneRepo )
Function variables to allow mocking in tests
Functions ¶
func CloneRepo ¶
func CloneRepo(repoURL, repoPath string, logger logger.LoggerInterface) error
CloneRepo clones a Git repository into the specified path.
func DefaultCloneOrUpdate ¶
func DefaultCloneOrUpdate(repoURL, repoPath string, logger logger.LoggerInterface) error
Default implementation of CloneOrUpdate
func DefaultUpdateRepo ¶
func DefaultUpdateRepo(repoPath string, logger logger.LoggerInterface) error
Default implementation of UpdateRepo
func ForceReclone ¶
func ForceReclone(repoURL, repoPath string, logger logger.LoggerInterface) error
ForceReclone removes an existing repository and re-clones it.
func IsValidGitRepo ¶
IsValidGitRepo checks if the given path is a valid Git repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.