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
- type LocalGitClient
- func (g *LocalGitClient) Clone(ctx context.Context, clonePath string, url string, token string, ref string) error
- func (g *LocalGitClient) CommitSHA(clonePath string) (string, error)
- func (g *LocalGitClient) GetRemoteOriginURL(ctx context.Context, repoPath string) (string, error)
- func (g *LocalGitClient) GetRepoHeadBranchName(ctx context.Context, repoPath string) (string, error)
- func (g *LocalGitClient) LastCommitDate(ctx context.Context, clonePath string) (time.Time, error)
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
type GitCommand ¶
type LocalGitClient ¶ added in v0.9.12
type LocalGitClient struct {
GitClient *GitClient
}
func NewLocalGitClient ¶ added in v0.9.12
func NewLocalGitClient(command *GitCommand) *LocalGitClient
func (*LocalGitClient) CommitSHA ¶ added in v0.9.12
func (g *LocalGitClient) CommitSHA(clonePath string) (string, error)
func (*LocalGitClient) GetRemoteOriginURL ¶ added in v0.9.12
func (*LocalGitClient) GetRepoHeadBranchName ¶ added in v0.9.12
func (*LocalGitClient) LastCommitDate ¶ added in v0.9.12
Click to show internal directories.
Click to hide internal directories.