Documentation ¶
Overview ¶
Package mock_gitlab is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AcceptMR(ctx context.Context, pid interface{}, mrID int, mergeCommitMsg *string, ...) (*gitlab0.MergeRequest, error)
- func (m *MockInterface) CloseMR(ctx context.Context, pid interface{}, mrID int) (*gitlab0.MergeRequest, error)
- func (m *MockInterface) Compare(ctx context.Context, pid interface{}, from, to string, straight *bool) (*gitlab0.Compare, error)
- func (m *MockInterface) CreateBranch(ctx context.Context, pid interface{}, branch, fromRef string) (*gitlab0.Branch, error)
- func (m *MockInterface) CreateGroup(ctx context.Context, name, path string, parentID *int, visibility string) (*gitlab0.Group, error)
- func (m *MockInterface) CreateMR(ctx context.Context, pid interface{}, source, target, title string) (*gitlab0.MergeRequest, error)
- func (m *MockInterface) CreateProject(ctx context.Context, name string, groupID int, visibility string) (*gitlab0.Project, error)
- func (m *MockInterface) DeleteBranch(ctx context.Context, pid interface{}, branch string) error
- func (m *MockInterface) DeleteGroup(ctx context.Context, gid interface{}) error
- func (m *MockInterface) DeleteProject(ctx context.Context, pid interface{}) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) EditNameAndPathForProject(ctx context.Context, pid interface{}, newName, newPath *string) error
- func (m *MockInterface) GetBranch(ctx context.Context, pid interface{}, branch string) (*gitlab0.Branch, error)
- func (m *MockInterface) GetCommit(ctx context.Context, pid interface{}, commit string) (*gitlab0.Commit, error)
- func (m *MockInterface) GetCreatedGroup(ctx context.Context, parentID int, parentPath, name, visibility string) (*gitlab0.Group, error)
- func (m *MockInterface) GetFile(ctx context.Context, pid interface{}, ref, filepath string) ([]byte, error)
- func (m *MockInterface) GetGroup(ctx context.Context, gid interface{}) (*gitlab0.Group, error)
- func (m *MockInterface) GetHTTPURL(ctx context.Context) string
- func (m *MockInterface) GetProject(ctx context.Context, pid interface{}) (*gitlab0.Project, error)
- func (m *MockInterface) GetRepositoryArchive(ctx context.Context, pid interface{}, sha string) ([]byte, error)
- func (m *MockInterface) GetTag(ctx context.Context, pid interface{}, tag string) (*gitlab0.Tag, error)
- func (m *MockInterface) ListBranch(ctx context.Context, pid interface{}, ...) ([]*gitlab0.Branch, error)
- func (m *MockInterface) ListGroupProjects(ctx context.Context, gid interface{}, page, perPage int) ([]*gitlab0.Project, error)
- func (m *MockInterface) ListMRs(ctx context.Context, pid interface{}, source, target, state string) ([]*gitlab0.MergeRequest, error)
- func (m *MockInterface) ListTag(ctx context.Context, pid interface{}, listTagOptions *gitlab0.ListTagsOptions) ([]*gitlab0.Tag, error)
- func (m *MockInterface) TransferProject(ctx context.Context, pid, gid interface{}) error
- func (m *MockInterface) WriteFiles(ctx context.Context, pid interface{}, branch, commitMsg string, ...) (*gitlab0.Commit, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AcceptMR(ctx, pid, mrID, mergeCommitMsg, shouldRemoveSourceBranch interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CloseMR(ctx, pid, mrID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Compare(ctx, pid, from, to, straight interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateBranch(ctx, pid, branch, fromRef interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateGroup(ctx, name, path, parentID, visibility interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateMR(ctx, pid, source, target, title interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateProject(ctx, name, groupID, visibility interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteBranch(ctx, pid, branch interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteGroup(ctx, gid interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteProject(ctx, pid interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) EditNameAndPathForProject(ctx, pid, newName, newPath interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetBranch(ctx, pid, branch interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetCommit(ctx, pid, commit interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetCreatedGroup(ctx, parentID, parentPath, name, visibility interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetFile(ctx, pid, ref, filepath interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetGroup(ctx, gid interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetHTTPURL(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetProject(ctx, pid interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetRepositoryArchive(ctx, pid, sha interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetTag(ctx, pid, tag interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListBranch(ctx, pid, listBranchOptions interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListGroupProjects(ctx, gid, page, perPage interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListMRs(ctx, pid, source, target, state interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ListTag(ctx, pid, listTagOptions interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) TransferProject(ctx, pid, gid interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) WriteFiles(ctx, pid, branch, commitMsg, startBranch, actions interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AcceptMR ¶
func (m *MockInterface) AcceptMR(ctx context.Context, pid interface{}, mrID int, mergeCommitMsg *string, shouldRemoveSourceBranch *bool) (*gitlab0.MergeRequest, error)
AcceptMR mocks base method.
func (*MockInterface) CloseMR ¶
func (m *MockInterface) CloseMR(ctx context.Context, pid interface{}, mrID int) (*gitlab0.MergeRequest, error)
CloseMR mocks base method.
func (*MockInterface) Compare ¶
func (m *MockInterface) Compare(ctx context.Context, pid interface{}, from, to string, straight *bool) (*gitlab0.Compare, error)
Compare mocks base method.
func (*MockInterface) CreateBranch ¶
func (m *MockInterface) CreateBranch(ctx context.Context, pid interface{}, branch, fromRef string) (*gitlab0.Branch, error)
CreateBranch mocks base method.
func (*MockInterface) CreateGroup ¶
func (m *MockInterface) CreateGroup(ctx context.Context, name, path string, parentID *int, visibility string) (*gitlab0.Group, error)
CreateGroup mocks base method.
func (*MockInterface) CreateMR ¶
func (m *MockInterface) CreateMR(ctx context.Context, pid interface{}, source, target, title string) (*gitlab0.MergeRequest, error)
CreateMR mocks base method.
func (*MockInterface) CreateProject ¶
func (m *MockInterface) CreateProject(ctx context.Context, name string, groupID int, visibility string) (*gitlab0.Project, error)
CreateProject mocks base method.
func (*MockInterface) DeleteBranch ¶
func (m *MockInterface) DeleteBranch(ctx context.Context, pid interface{}, branch string) error
DeleteBranch mocks base method.
func (*MockInterface) DeleteGroup ¶
func (m *MockInterface) DeleteGroup(ctx context.Context, gid interface{}) error
DeleteGroup mocks base method.
func (*MockInterface) DeleteProject ¶
func (m *MockInterface) DeleteProject(ctx context.Context, pid interface{}) error
DeleteProject mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) EditNameAndPathForProject ¶
func (m *MockInterface) EditNameAndPathForProject(ctx context.Context, pid interface{}, newName, newPath *string) error
EditNameAndPathForProject mocks base method.
func (*MockInterface) GetBranch ¶
func (m *MockInterface) GetBranch(ctx context.Context, pid interface{}, branch string) (*gitlab0.Branch, error)
GetBranch mocks base method.
func (*MockInterface) GetCommit ¶
func (m *MockInterface) GetCommit(ctx context.Context, pid interface{}, commit string) (*gitlab0.Commit, error)
GetCommit mocks base method.
func (*MockInterface) GetCreatedGroup ¶
func (m *MockInterface) GetCreatedGroup(ctx context.Context, parentID int, parentPath, name, visibility string) (*gitlab0.Group, error)
GetCreatedGroup mocks base method.
func (*MockInterface) GetFile ¶
func (m *MockInterface) GetFile(ctx context.Context, pid interface{}, ref, filepath string) ([]byte, error)
GetFile mocks base method.
func (*MockInterface) GetHTTPURL ¶
func (m *MockInterface) GetHTTPURL(ctx context.Context) string
GetHTTPURL mocks base method.
func (*MockInterface) GetProject ¶
GetProject mocks base method.
func (*MockInterface) GetRepositoryArchive ¶
func (m *MockInterface) GetRepositoryArchive(ctx context.Context, pid interface{}, sha string) ([]byte, error)
GetRepositoryArchive mocks base method.
func (*MockInterface) GetTag ¶
func (m *MockInterface) GetTag(ctx context.Context, pid interface{}, tag string) (*gitlab0.Tag, error)
GetTag mocks base method.
func (*MockInterface) ListBranch ¶
func (m *MockInterface) ListBranch(ctx context.Context, pid interface{}, listBranchOptions *gitlab0.ListBranchesOptions) ([]*gitlab0.Branch, error)
ListBranch mocks base method.
func (*MockInterface) ListGroupProjects ¶
func (m *MockInterface) ListGroupProjects(ctx context.Context, gid interface{}, page, perPage int) ([]*gitlab0.Project, error)
ListGroupProjects mocks base method.
func (*MockInterface) ListMRs ¶
func (m *MockInterface) ListMRs(ctx context.Context, pid interface{}, source, target, state string) ([]*gitlab0.MergeRequest, error)
ListMRs mocks base method.
func (*MockInterface) ListTag ¶
func (m *MockInterface) ListTag(ctx context.Context, pid interface{}, listTagOptions *gitlab0.ListTagsOptions) ([]*gitlab0.Tag, error)
ListTag mocks base method.
func (*MockInterface) TransferProject ¶
func (m *MockInterface) TransferProject(ctx context.Context, pid, gid interface{}) error
TransferProject mocks base method.
func (*MockInterface) WriteFiles ¶
func (m *MockInterface) WriteFiles(ctx context.Context, pid interface{}, branch, commitMsg string, startBranch *string, actions []gitlab.CommitAction) (*gitlab0.Commit, error)
WriteFiles mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AcceptMR ¶
func (mr *MockInterfaceMockRecorder) AcceptMR(ctx, pid, mrID, mergeCommitMsg, shouldRemoveSourceBranch interface{}) *gomock.Call
AcceptMR indicates an expected call of AcceptMR.
func (*MockInterfaceMockRecorder) CloseMR ¶
func (mr *MockInterfaceMockRecorder) CloseMR(ctx, pid, mrID interface{}) *gomock.Call
CloseMR indicates an expected call of CloseMR.
func (*MockInterfaceMockRecorder) Compare ¶
func (mr *MockInterfaceMockRecorder) Compare(ctx, pid, from, to, straight interface{}) *gomock.Call
Compare indicates an expected call of Compare.
func (*MockInterfaceMockRecorder) CreateBranch ¶
func (mr *MockInterfaceMockRecorder) CreateBranch(ctx, pid, branch, fromRef interface{}) *gomock.Call
CreateBranch indicates an expected call of CreateBranch.
func (*MockInterfaceMockRecorder) CreateGroup ¶
func (mr *MockInterfaceMockRecorder) CreateGroup(ctx, name, path, parentID, visibility interface{}) *gomock.Call
CreateGroup indicates an expected call of CreateGroup.
func (*MockInterfaceMockRecorder) CreateMR ¶
func (mr *MockInterfaceMockRecorder) CreateMR(ctx, pid, source, target, title interface{}) *gomock.Call
CreateMR indicates an expected call of CreateMR.
func (*MockInterfaceMockRecorder) CreateProject ¶
func (mr *MockInterfaceMockRecorder) CreateProject(ctx, name, groupID, visibility interface{}) *gomock.Call
CreateProject indicates an expected call of CreateProject.
func (*MockInterfaceMockRecorder) DeleteBranch ¶
func (mr *MockInterfaceMockRecorder) DeleteBranch(ctx, pid, branch interface{}) *gomock.Call
DeleteBranch indicates an expected call of DeleteBranch.
func (*MockInterfaceMockRecorder) DeleteGroup ¶
func (mr *MockInterfaceMockRecorder) DeleteGroup(ctx, gid interface{}) *gomock.Call
DeleteGroup indicates an expected call of DeleteGroup.
func (*MockInterfaceMockRecorder) DeleteProject ¶
func (mr *MockInterfaceMockRecorder) DeleteProject(ctx, pid interface{}) *gomock.Call
DeleteProject indicates an expected call of DeleteProject.
func (*MockInterfaceMockRecorder) EditNameAndPathForProject ¶
func (mr *MockInterfaceMockRecorder) EditNameAndPathForProject(ctx, pid, newName, newPath interface{}) *gomock.Call
EditNameAndPathForProject indicates an expected call of EditNameAndPathForProject.
func (*MockInterfaceMockRecorder) GetBranch ¶
func (mr *MockInterfaceMockRecorder) GetBranch(ctx, pid, branch interface{}) *gomock.Call
GetBranch indicates an expected call of GetBranch.
func (*MockInterfaceMockRecorder) GetCommit ¶
func (mr *MockInterfaceMockRecorder) GetCommit(ctx, pid, commit interface{}) *gomock.Call
GetCommit indicates an expected call of GetCommit.
func (*MockInterfaceMockRecorder) GetCreatedGroup ¶
func (mr *MockInterfaceMockRecorder) GetCreatedGroup(ctx, parentID, parentPath, name, visibility interface{}) *gomock.Call
GetCreatedGroup indicates an expected call of GetCreatedGroup.
func (*MockInterfaceMockRecorder) GetFile ¶
func (mr *MockInterfaceMockRecorder) GetFile(ctx, pid, ref, filepath interface{}) *gomock.Call
GetFile indicates an expected call of GetFile.
func (*MockInterfaceMockRecorder) GetGroup ¶
func (mr *MockInterfaceMockRecorder) GetGroup(ctx, gid interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup.
func (*MockInterfaceMockRecorder) GetHTTPURL ¶
func (mr *MockInterfaceMockRecorder) GetHTTPURL(ctx interface{}) *gomock.Call
GetHTTPURL indicates an expected call of GetHTTPURL.
func (*MockInterfaceMockRecorder) GetProject ¶
func (mr *MockInterfaceMockRecorder) GetProject(ctx, pid interface{}) *gomock.Call
GetProject indicates an expected call of GetProject.
func (*MockInterfaceMockRecorder) GetRepositoryArchive ¶
func (mr *MockInterfaceMockRecorder) GetRepositoryArchive(ctx, pid, sha interface{}) *gomock.Call
GetRepositoryArchive indicates an expected call of GetRepositoryArchive.
func (*MockInterfaceMockRecorder) GetTag ¶
func (mr *MockInterfaceMockRecorder) GetTag(ctx, pid, tag interface{}) *gomock.Call
GetTag indicates an expected call of GetTag.
func (*MockInterfaceMockRecorder) ListBranch ¶
func (mr *MockInterfaceMockRecorder) ListBranch(ctx, pid, listBranchOptions interface{}) *gomock.Call
ListBranch indicates an expected call of ListBranch.
func (*MockInterfaceMockRecorder) ListGroupProjects ¶
func (mr *MockInterfaceMockRecorder) ListGroupProjects(ctx, gid, page, perPage interface{}) *gomock.Call
ListGroupProjects indicates an expected call of ListGroupProjects.
func (*MockInterfaceMockRecorder) ListMRs ¶
func (mr *MockInterfaceMockRecorder) ListMRs(ctx, pid, source, target, state interface{}) *gomock.Call
ListMRs indicates an expected call of ListMRs.
func (*MockInterfaceMockRecorder) ListTag ¶
func (mr *MockInterfaceMockRecorder) ListTag(ctx, pid, listTagOptions interface{}) *gomock.Call
ListTag indicates an expected call of ListTag.
func (*MockInterfaceMockRecorder) TransferProject ¶
func (mr *MockInterfaceMockRecorder) TransferProject(ctx, pid, gid interface{}) *gomock.Call
TransferProject indicates an expected call of TransferProject.
func (*MockInterfaceMockRecorder) WriteFiles ¶
func (mr *MockInterfaceMockRecorder) WriteFiles(ctx, pid, branch, commitMsg, startBranch, actions interface{}) *gomock.Call
WriteFiles indicates an expected call of WriteFiles.