Documentation ¶
Overview ¶
Package mock_gitlab is a generated GoMock package.
Index ¶
- type MockGitlab
- func (m *MockGitlab) EXPECT() *MockGitlabMockRecorder
- func (m *MockGitlab) GetCurrentUser(arg0 context.Context, arg1 string, arg2 oauth2.Token) (*gitlab.UserInfo, error)
- func (m *MockGitlab) GetGroupHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string) ([]*gitlab.WebhookInfo, error)
- func (m *MockGitlab) GetIssueByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, ...) (*gitlab.Issue, error)
- func (m *MockGitlab) GetLHSData(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab.LHSContent, error)
- func (m *MockGitlab) GetMergeRequestByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, ...) (*gitlab.MergeRequest, error)
- func (m *MockGitlab) GetProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, ...) (*gitlab0.Project, error)
- func (m *MockGitlab) GetProjectHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, ...) ([]*gitlab.WebhookInfo, error)
- func (m *MockGitlab) GetReviews(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error)
- func (m *MockGitlab) GetToDoList(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab0.Todo, error)
- func (m *MockGitlab) GetUserDetails(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab0.User, error)
- func (m *MockGitlab) GetYourAssignedIssues(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.Issue, error)
- func (m *MockGitlab) GetYourAssignedPrs(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error)
- func (m *MockGitlab) GetYourPrDetails(arg0 context.Context, arg1 logger.Logger, arg2 *gitlab.UserInfo, ...) ([]*gitlab.PRDetails, error)
- func (m *MockGitlab) GitlabConnect(arg0 oauth2.Token) (*gitlab0.Client, error)
- func (m *MockGitlab) NewGroupHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, ...) (*gitlab.WebhookInfo, error)
- func (m *MockGitlab) NewProjectHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, ...) (*gitlab.WebhookInfo, error)
- func (m *MockGitlab) ResolveNamespaceAndProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, ...) (string, string, error)
- func (m *MockGitlab) TriggerProjectPipeline(arg0 *gitlab.UserInfo, arg1 *oauth2.Token, arg2, arg3 string) (*gitlab.PipelineInfo, error)
- type MockGitlabMockRecorder
- func (mr *MockGitlabMockRecorder) GetCurrentUser(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetGroupHooks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetIssueByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetLHSData(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetMergeRequestByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetProjectHooks(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetReviews(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetToDoList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetUserDetails(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetYourAssignedIssues(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetYourAssignedPrs(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GetYourPrDetails(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) GitlabConnect(arg0 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) NewGroupHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) NewProjectHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) ResolveNamespaceAndProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockGitlabMockRecorder) TriggerProjectPipeline(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitlab ¶
type MockGitlab struct {
// contains filtered or unexported fields
}
MockGitlab is a mock of Gitlab interface.
func NewMockGitlab ¶
func NewMockGitlab(ctrl *gomock.Controller) *MockGitlab
NewMockGitlab creates a new mock instance.
func (*MockGitlab) EXPECT ¶
func (m *MockGitlab) EXPECT() *MockGitlabMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitlab) GetCurrentUser ¶
func (m *MockGitlab) GetCurrentUser(arg0 context.Context, arg1 string, arg2 oauth2.Token) (*gitlab.UserInfo, error)
GetCurrentUser mocks base method.
func (*MockGitlab) GetGroupHooks ¶
func (m *MockGitlab) GetGroupHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string) ([]*gitlab.WebhookInfo, error)
GetGroupHooks mocks base method.
func (*MockGitlab) GetIssueByID ¶ added in v1.9.0
func (m *MockGitlab) GetIssueByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, arg5 *oauth2.Token) (*gitlab.Issue, error)
GetIssueByID mocks base method.
func (*MockGitlab) GetLHSData ¶ added in v1.8.0
func (m *MockGitlab) GetLHSData(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab.LHSContent, error)
GetLHSData mocks base method.
func (*MockGitlab) GetMergeRequestByID ¶ added in v1.9.0
func (m *MockGitlab) GetMergeRequestByID(arg0 context.Context, arg1 *gitlab.UserInfo, arg2, arg3 string, arg4 int, arg5 *oauth2.Token) (*gitlab.MergeRequest, error)
GetMergeRequestByID mocks base method.
func (*MockGitlab) GetProject ¶
func (m *MockGitlab) GetProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3, arg4 string) (*gitlab0.Project, error)
GetProject mocks base method.
func (*MockGitlab) GetProjectHooks ¶
func (m *MockGitlab) GetProjectHooks(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3, arg4 string) ([]*gitlab.WebhookInfo, error)
GetProjectHooks mocks base method.
func (*MockGitlab) GetReviews ¶
func (m *MockGitlab) GetReviews(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error)
GetReviews mocks base method.
func (*MockGitlab) GetToDoList ¶ added in v1.8.1
func (m *MockGitlab) GetToDoList(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab0.Todo, error)
GetToDoList mocks base method.
func (*MockGitlab) GetUserDetails ¶
func (m *MockGitlab) GetUserDetails(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token) (*gitlab0.User, error)
GetUserDetails mocks base method.
func (*MockGitlab) GetYourAssignedIssues ¶ added in v1.8.1
func (m *MockGitlab) GetYourAssignedIssues(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.Issue, error)
GetYourAssignedIssues mocks base method.
func (*MockGitlab) GetYourAssignedPrs ¶ added in v1.8.1
func (m *MockGitlab) GetYourAssignedPrs(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *gitlab0.Client) ([]*gitlab.MergeRequest, error)
GetYourAssignedPrs mocks base method.
func (*MockGitlab) GetYourPrDetails ¶ added in v1.7.0
func (m *MockGitlab) GetYourPrDetails(arg0 context.Context, arg1 logger.Logger, arg2 *gitlab.UserInfo, arg3 *oauth2.Token, arg4 []*gitlab.PRDetails) ([]*gitlab.PRDetails, error)
GetYourPrDetails mocks base method.
func (*MockGitlab) GitlabConnect ¶ added in v1.7.0
GitlabConnect mocks base method.
func (*MockGitlab) NewGroupHook ¶
func (m *MockGitlab) NewGroupHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, arg4 *gitlab.AddWebhookOptions) (*gitlab.WebhookInfo, error)
NewGroupHook mocks base method.
func (*MockGitlab) NewProjectHook ¶
func (m *MockGitlab) NewProjectHook(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 interface{}, arg4 *gitlab.AddWebhookOptions) (*gitlab.WebhookInfo, error)
NewProjectHook mocks base method.
func (*MockGitlab) ResolveNamespaceAndProject ¶
func (m *MockGitlab) ResolveNamespaceAndProject(arg0 context.Context, arg1 *gitlab.UserInfo, arg2 *oauth2.Token, arg3 string, arg4 bool) (string, string, error)
ResolveNamespaceAndProject mocks base method.
func (*MockGitlab) TriggerProjectPipeline ¶ added in v1.6.0
func (m *MockGitlab) TriggerProjectPipeline(arg0 *gitlab.UserInfo, arg1 *oauth2.Token, arg2, arg3 string) (*gitlab.PipelineInfo, error)
TriggerProjectPipeline mocks base method.
type MockGitlabMockRecorder ¶
type MockGitlabMockRecorder struct {
// contains filtered or unexported fields
}
MockGitlabMockRecorder is the mock recorder for MockGitlab.
func (*MockGitlabMockRecorder) GetCurrentUser ¶
func (mr *MockGitlabMockRecorder) GetCurrentUser(arg0, arg1, arg2 interface{}) *gomock.Call
GetCurrentUser indicates an expected call of GetCurrentUser.
func (*MockGitlabMockRecorder) GetGroupHooks ¶
func (mr *MockGitlabMockRecorder) GetGroupHooks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetGroupHooks indicates an expected call of GetGroupHooks.
func (*MockGitlabMockRecorder) GetIssueByID ¶ added in v1.9.0
func (mr *MockGitlabMockRecorder) GetIssueByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
GetIssueByID indicates an expected call of GetIssueByID.
func (*MockGitlabMockRecorder) GetLHSData ¶ added in v1.8.0
func (mr *MockGitlabMockRecorder) GetLHSData(arg0, arg1, arg2 interface{}) *gomock.Call
GetLHSData indicates an expected call of GetLHSData.
func (*MockGitlabMockRecorder) GetMergeRequestByID ¶ added in v1.9.0
func (mr *MockGitlabMockRecorder) GetMergeRequestByID(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
GetMergeRequestByID indicates an expected call of GetMergeRequestByID.
func (*MockGitlabMockRecorder) GetProject ¶
func (mr *MockGitlabMockRecorder) GetProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
GetProject indicates an expected call of GetProject.
func (*MockGitlabMockRecorder) GetProjectHooks ¶
func (mr *MockGitlabMockRecorder) GetProjectHooks(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
GetProjectHooks indicates an expected call of GetProjectHooks.
func (*MockGitlabMockRecorder) GetReviews ¶
func (mr *MockGitlabMockRecorder) GetReviews(arg0, arg1, arg2 interface{}) *gomock.Call
GetReviews indicates an expected call of GetReviews.
func (*MockGitlabMockRecorder) GetToDoList ¶ added in v1.8.1
func (mr *MockGitlabMockRecorder) GetToDoList(arg0, arg1, arg2 interface{}) *gomock.Call
GetToDoList indicates an expected call of GetToDoList.
func (*MockGitlabMockRecorder) GetUserDetails ¶
func (mr *MockGitlabMockRecorder) GetUserDetails(arg0, arg1, arg2 interface{}) *gomock.Call
GetUserDetails indicates an expected call of GetUserDetails.
func (*MockGitlabMockRecorder) GetYourAssignedIssues ¶ added in v1.8.1
func (mr *MockGitlabMockRecorder) GetYourAssignedIssues(arg0, arg1, arg2 interface{}) *gomock.Call
GetYourAssignedIssues indicates an expected call of GetYourAssignedIssues.
func (*MockGitlabMockRecorder) GetYourAssignedPrs ¶ added in v1.8.1
func (mr *MockGitlabMockRecorder) GetYourAssignedPrs(arg0, arg1, arg2 interface{}) *gomock.Call
GetYourAssignedPrs indicates an expected call of GetYourAssignedPrs.
func (*MockGitlabMockRecorder) GetYourPrDetails ¶ added in v1.7.0
func (mr *MockGitlabMockRecorder) GetYourPrDetails(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
GetYourPrDetails indicates an expected call of GetYourPrDetails.
func (*MockGitlabMockRecorder) GitlabConnect ¶ added in v1.7.0
func (mr *MockGitlabMockRecorder) GitlabConnect(arg0 interface{}) *gomock.Call
GitlabConnect indicates an expected call of GitlabConnect.
func (*MockGitlabMockRecorder) NewGroupHook ¶
func (mr *MockGitlabMockRecorder) NewGroupHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
NewGroupHook indicates an expected call of NewGroupHook.
func (*MockGitlabMockRecorder) NewProjectHook ¶
func (mr *MockGitlabMockRecorder) NewProjectHook(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
NewProjectHook indicates an expected call of NewProjectHook.
func (*MockGitlabMockRecorder) ResolveNamespaceAndProject ¶
func (mr *MockGitlabMockRecorder) ResolveNamespaceAndProject(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
ResolveNamespaceAndProject indicates an expected call of ResolveNamespaceAndProject.
func (*MockGitlabMockRecorder) TriggerProjectPipeline ¶ added in v1.6.0
func (mr *MockGitlabMockRecorder) TriggerProjectPipeline(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
TriggerProjectPipeline indicates an expected call of TriggerProjectPipeline.