Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cloner ¶
Cloner is a function that can clone a git repo.
func DoNothingCloner ¶
func DoNothingCloner(dir fs.ConfirmedDir) Cloner
DoNothingCloner returns a cloner that only sets cloneDir field in the repoSpec. It's assumed that the cloneDir is associated with some fake filesystem used in a test.
type RepoSpec ¶
type RepoSpec struct {
// contains filtered or unexported fields
}
RepoSpec specifies a git repository and a branch and path therein.
func NewRepoSpecFromUrl ¶
From strings like git@github.com:someOrg/someRepo.git or https://github.com/someOrg/someRepo?ref=someHash, extract the parts.
func (*RepoSpec) Cleaner ¶
func (x *RepoSpec) Cleaner(fSys fs.FileSystem) func() error
func (*RepoSpec) CloneDir ¶
func (x *RepoSpec) CloneDir() fs.ConfirmedDir
func (*RepoSpec) CloneSpec ¶
CloneSpec returns a string suitable for "git clone {spec}".
Source Files
¶
- cloner.go
- repospec.go
Click to show internal directories.
Click to hide internal directories.