Documentation ¶
Overview ¶
Package git defines the functionality to interact with the git CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git interface { // DiffDirsAbs returns the directories changed using the git diff command DiffDirsAbs(ctx context.Context, baseRef, headRef string) ([]string, error) // CloneRepository clones the repository to the workingDir. CloneRepository(ctx context.Context, githubToken, owner, repo string) error }
Git defined the common git functionality.
type GitClient ¶
type GitClient struct {
// contains filtered or unexported fields
}
GitClient implements the git interface.
func NewGitClient ¶
NewGitClient creates a new Terraform client.
func (*GitClient) CloneRepository ¶
CloneRepository clones the repository to the workingDir.
type MockGitClient ¶
MockGitClient implements the git interface.
func (*MockGitClient) CloneRepository ¶
func (m *MockGitClient) CloneRepository(ctx context.Context, githubToken, owner, repo string) error
CloneRepository clones the repository to the workingDir.
func (*MockGitClient) DiffDirsAbs ¶
DiffDirsAbs runs a git diff between two revisions and returns the list of directories with changes.
Click to show internal directories.
Click to hide internal directories.