Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedactCredsInText ¶
func RepoNameUsedInCacheDir ¶
Types ¶
type AccessDetails ¶
type AccessDetails struct {
URL string
}
type CloneResults ¶
func CloneWithCache ¶
func CloneWithCache(ctx context.Context, logger hclog.Logger, access AccessDetails, dirs Dirs, repoID string, name string) (_ CloneResults, rerr error)
CloneWithCache mirrors a provided repo into dirs.CacheRoot/name-repoID. And then checkout a copy into dirs.Checkout Automatically retries on errors.
Click to show internal directories.
Click to hide internal directories.