Documentation ¶
Index ¶
- Variables
- func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, ...) (*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)
- func NewGitCloneExecutor(input NewGitCloneExecutorInput) common.Executor
- type Error
- type NewGitCloneExecutorInput
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 CloneIfRequired ¶
func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, input NewGitCloneExecutorInput, logger log.FieldLogger) (*git.Repository, error)
CloneIfRequired ...
func FindGitRef ¶
FindGitRef get the current git ref
func FindGitRevision ¶
FindGitRevision get the current git revision
func FindGithubRepo ¶
FindGithubRepo get the repo
func NewGitCloneExecutor ¶
func NewGitCloneExecutor(input NewGitCloneExecutorInput) common.Executor
NewGitCloneExecutor creates an executor to clone git repos nolint:gocyclo
Types ¶
Click to show internal directories.
Click to hide internal directories.