Documentation ¶
Overview ¶
Package gitutils is a generated GoMock package.
Package gitutils is a generated GoMock package.
Package gitutils is a generated GoMock package.
Index ¶
- func AuthFromToken(token string) transport.AuthMethod
- type CherryPicker
- type CherryPickerImpl
- type Differ
- type DifferImpl
- type Executor
- type ExecutorImpl
- type Helper
- type HelperImpl
- func (h *HelperImpl) FetchRemoteContext(ctx context.Context, remoteName, branchName string) error
- func (h *HelperImpl) GetBranchRef(ctx context.Context, branchName string) (*plumbing.Reference, error)
- func (h *HelperImpl) GetRemoteRef(ctx context.Context, remoteName, branchName string) (*plumbing.Reference, error)
- func (h *HelperImpl) PushContextWithAuth(ctx context.Context, token string) error
- func (h *HelperImpl) RecreateRemote(ctx context.Context, remoteName, remoteURL string) (*git.Remote, error)
- type MockCherryPicker
- type MockCherryPickerMockRecorder
- type MockDiffer
- type MockDifferMockRecorder
- type MockExecutor
- type MockExecutorMockRecorder
- type MockHelper
- func (m *MockHelper) EXPECT() *MockHelperMockRecorder
- func (m *MockHelper) FetchRemoteContext(ctx context.Context, remoteName, branchName string) error
- func (m *MockHelper) GetBranchRef(ctx context.Context, branchName string) (*plumbing.Reference, error)
- func (m *MockHelper) GetRemoteRef(ctx context.Context, remoteName, branchName string) (*plumbing.Reference, error)
- func (m *MockHelper) PushContextWithAuth(ctx context.Context, token string) error
- func (m *MockHelper) RecreateRemote(ctx context.Context, remoteNAme, remoteURL string) (*git.Remote, error)
- type MockHelperMockRecorder
- func (mr *MockHelperMockRecorder) FetchRemoteContext(ctx, remoteName, branchName interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) GetBranchRef(ctx, branchName interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) GetRemoteRef(ctx, remoteName, branchName interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) PushContextWithAuth(ctx, token interface{}) *gomock.Call
- func (mr *MockHelperMockRecorder) RecreateRemote(ctx, remoteNAme, remoteURL interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthFromToken ¶
func AuthFromToken(token string) transport.AuthMethod
Types ¶
type CherryPicker ¶
type CherryPickerImpl ¶
type CherryPickerImpl struct {
// contains filtered or unexported fields
}
func NewCherryPicker ¶
func NewCherryPicker(markup string, logger logr.Logger, beforeCommitCmds ...[]string) *CherryPickerImpl
type DifferImpl ¶
type DifferImpl struct {
// contains filtered or unexported fields
}
type ExecutorImpl ¶
type ExecutorImpl struct {
// contains filtered or unexported fields
}
func (*ExecutorImpl) RunCommand ¶
type Helper ¶
type Helper interface { FetchRemoteContext(ctx context.Context, remoteName, branchName string) error GetBranchRef(ctx context.Context, branchName string) (*plumbing.Reference, error) GetRemoteRef(ctx context.Context, remoteName, branchName string) (*plumbing.Reference, error) PushContextWithAuth(ctx context.Context, token string) error RecreateRemote(ctx context.Context, remoteNAme, remoteURL string) (*git.Remote, error) }
type HelperImpl ¶
type HelperImpl struct {
// contains filtered or unexported fields
}
func (*HelperImpl) FetchRemoteContext ¶
func (h *HelperImpl) FetchRemoteContext(ctx context.Context, remoteName, branchName string) error
func (*HelperImpl) GetBranchRef ¶
func (*HelperImpl) GetRemoteRef ¶
func (*HelperImpl) PushContextWithAuth ¶
func (h *HelperImpl) PushContextWithAuth(ctx context.Context, token string) error
func (*HelperImpl) RecreateRemote ¶
func (h *HelperImpl) RecreateRemote(ctx context.Context, remoteName, remoteURL string) (*git.Remote, error)
type MockCherryPicker ¶
type MockCherryPicker struct {
// contains filtered or unexported fields
}
MockCherryPicker is a mock of CherryPicker interface.
func NewMockCherryPicker ¶
func NewMockCherryPicker(ctrl *gomock.Controller) *MockCherryPicker
NewMockCherryPicker creates a new mock instance.
func (*MockCherryPicker) EXPECT ¶
func (m *MockCherryPicker) EXPECT() *MockCherryPickerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCherryPickerMockRecorder ¶
type MockCherryPickerMockRecorder struct {
// contains filtered or unexported fields
}
MockCherryPickerMockRecorder is the mock recorder for MockCherryPicker.
func (*MockCherryPickerMockRecorder) Run ¶
func (mr *MockCherryPickerMockRecorder) Run(ctx, repo, repoPath, commit interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockDiffer ¶
type MockDiffer struct {
// contains filtered or unexported fields
}
MockDiffer is a mock of Differ interface.
func NewMockDiffer ¶
func NewMockDiffer(ctrl *gomock.Controller) *MockDiffer
NewMockDiffer creates a new mock instance.
func (*MockDiffer) EXPECT ¶
func (m *MockDiffer) EXPECT() *MockDifferMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDifferMockRecorder ¶
type MockDifferMockRecorder struct {
// contains filtered or unexported fields
}
MockDifferMockRecorder is the mock recorder for MockDiffer.
func (*MockDifferMockRecorder) GetMissingCommits ¶
func (mr *MockDifferMockRecorder) GetMissingCommits(ctx, repo, repoName, since, dsMainBranch, upstreamConfig interface{}) *gomock.Call
GetMissingCommits indicates an expected call of GetMissingCommits.
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutor) RunCommand ¶
func (m *MockExecutor) RunCommand(ctx context.Context, logger logr.Logger, bin, dir string, args ...string) error
RunCommand mocks base method.
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
func (*MockExecutorMockRecorder) RunCommand ¶
func (mr *MockExecutorMockRecorder) RunCommand(ctx, logger, bin, dir interface{}, args ...interface{}) *gomock.Call
RunCommand indicates an expected call of RunCommand.
type MockHelper ¶
type MockHelper struct {
// contains filtered or unexported fields
}
MockHelper is a mock of Helper interface.
func NewMockHelper ¶
func NewMockHelper(ctrl *gomock.Controller) *MockHelper
NewMockHelper creates a new mock instance.
func (*MockHelper) EXPECT ¶
func (m *MockHelper) EXPECT() *MockHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelper) FetchRemoteContext ¶
func (m *MockHelper) FetchRemoteContext(ctx context.Context, remoteName, branchName string) error
FetchRemoteContext mocks base method.
func (*MockHelper) GetBranchRef ¶
func (m *MockHelper) GetBranchRef(ctx context.Context, branchName string) (*plumbing.Reference, error)
GetBranchRef mocks base method.
func (*MockHelper) GetRemoteRef ¶
func (m *MockHelper) GetRemoteRef(ctx context.Context, remoteName, branchName string) (*plumbing.Reference, error)
GetRemoteRef mocks base method.
func (*MockHelper) PushContextWithAuth ¶
func (m *MockHelper) PushContextWithAuth(ctx context.Context, token string) error
PushContextWithAuth mocks base method.
func (*MockHelper) RecreateRemote ¶
func (m *MockHelper) RecreateRemote(ctx context.Context, remoteNAme, remoteURL string) (*git.Remote, error)
RecreateRemote mocks base method.
type MockHelperMockRecorder ¶
type MockHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockHelperMockRecorder is the mock recorder for MockHelper.
func (*MockHelperMockRecorder) FetchRemoteContext ¶
func (mr *MockHelperMockRecorder) FetchRemoteContext(ctx, remoteName, branchName interface{}) *gomock.Call
FetchRemoteContext indicates an expected call of FetchRemoteContext.
func (*MockHelperMockRecorder) GetBranchRef ¶
func (mr *MockHelperMockRecorder) GetBranchRef(ctx, branchName interface{}) *gomock.Call
GetBranchRef indicates an expected call of GetBranchRef.
func (*MockHelperMockRecorder) GetRemoteRef ¶
func (mr *MockHelperMockRecorder) GetRemoteRef(ctx, remoteName, branchName interface{}) *gomock.Call
GetRemoteRef indicates an expected call of GetRemoteRef.
func (*MockHelperMockRecorder) PushContextWithAuth ¶
func (mr *MockHelperMockRecorder) PushContextWithAuth(ctx, token interface{}) *gomock.Call
PushContextWithAuth indicates an expected call of PushContextWithAuth.
func (*MockHelperMockRecorder) RecreateRemote ¶
func (mr *MockHelperMockRecorder) RecreateRemote(ctx, remoteNAme, remoteURL interface{}) *gomock.Call
RecreateRemote indicates an expected call of RecreateRemote.