Documentation ¶
Index ¶
- Variables
- func Clone(ctx context.Context, input GitCloneConfig) error
- func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, input GitCloneConfig, ...) (*git.Repository, error)
- func FindGitRef(ctx context.Context, file string) (string, error)
- func FindGitRevision(ctx context.Context, file string) (shortSha string, sha string, err error)
- func FindGithubRepo(ctx context.Context, file, githubInstance, remoteName string) (string, error)
- type Error
- type GitCloneConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrShortRef = errors.New("short SHA references are not supported") ErrNoRepo = errors.New("unable to find git repo") )
Functions ¶
func Clone ¶
func Clone(ctx context.Context, input GitCloneConfig) error
NewGitCloneExecutor creates an executor to clone git repos
func CloneIfRequired ¶
func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, input GitCloneConfig, lg *common.LoggerWrapper) (*git.Repository, error)
CloneIfRequired ...
func FindGitRef ¶
FindGitRef get the current git ref
func FindGitRevision ¶
FindGitRevision get the current git revision
Types ¶
Click to show internal directories.
Click to hide internal directories.