Documentation
¶
Index ¶
- type ExecGitCommand
- type GitClient
- func (g *GitClient) Clone(ctx context.Context, clonePath string, url string, token string, ref string) error
- func (g *GitClient) CommitSHA(clonePath string) (string, error)
- func (g *GitClient) GetRemoteOriginURL(ctx context.Context, repoPath string) (string, error)
- func (g *GitClient) GetRepoHeadBranchName(ctx context.Context, repoPath string) (string, error)
- func (g *GitClient) LastCommitDate(ctx context.Context, clonePath string) (time.Time, error)
- type GitCloneError
- type GitCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecGitCommand ¶
type ExecGitCommand struct{}
type GitClient ¶
type GitClient struct {
Command GitCommand
}
func NewGitClient ¶
func NewGitClient(command *GitCommand) *GitClient
func (*GitClient) GetRemoteOriginURL ¶
func (*GitClient) GetRepoHeadBranchName ¶
type GitCloneError ¶
type GitCloneError struct {
// contains filtered or unexported fields
}
func (*GitCloneError) Error ¶
func (e *GitCloneError) Error() string
Click to show internal directories.
Click to hide internal directories.