Documentation ¶
Overview ¶
Mocks for GitLab access RPC.
Package mock_gitlab_access is a generated GoMock package.
Index ¶
- type MockGitlabAccessClient
- type MockGitlabAccessClientMakeRequestCall
- func (c *MockGitlabAccessClientMakeRequestCall) Do(...) *MockGitlabAccessClientMakeRequestCall
- func (c *MockGitlabAccessClientMakeRequestCall) DoAndReturn(...) *MockGitlabAccessClientMakeRequestCall
- func (c *MockGitlabAccessClientMakeRequestCall) Return(arg0 rpc.GitlabAccess_MakeRequestClient, arg1 error) *MockGitlabAccessClientMakeRequestCall
- type MockGitlabAccessClientMockRecorder
- type MockGitlabAccess_MakeRequestClient
- func (m *MockGitlabAccess_MakeRequestClient) CloseSend() error
- func (m *MockGitlabAccess_MakeRequestClient) Context() context.Context
- func (m *MockGitlabAccess_MakeRequestClient) EXPECT() *MockGitlabAccess_MakeRequestClientMockRecorder
- func (m *MockGitlabAccess_MakeRequestClient) Header() (metadata.MD, error)
- func (m *MockGitlabAccess_MakeRequestClient) Recv() (*grpctool.HttpResponse, error)
- func (m *MockGitlabAccess_MakeRequestClient) RecvMsg(arg0 any) error
- func (m *MockGitlabAccess_MakeRequestClient) Send(arg0 *grpctool.HttpRequest) error
- func (m *MockGitlabAccess_MakeRequestClient) SendMsg(arg0 any) error
- func (m *MockGitlabAccess_MakeRequestClient) Trailer() metadata.MD
- type MockGitlabAccess_MakeRequestClientCloseSendCall
- func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) Do(f func() error) *MockGitlabAccess_MakeRequestClientCloseSendCall
- func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn(f func() error) *MockGitlabAccess_MakeRequestClientCloseSendCall
- func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientCloseSendCall
- type MockGitlabAccess_MakeRequestClientContextCall
- func (c *MockGitlabAccess_MakeRequestClientContextCall) Do(f func() context.Context) *MockGitlabAccess_MakeRequestClientContextCall
- func (c *MockGitlabAccess_MakeRequestClientContextCall) DoAndReturn(f func() context.Context) *MockGitlabAccess_MakeRequestClientContextCall
- func (c *MockGitlabAccess_MakeRequestClientContextCall) Return(arg0 context.Context) *MockGitlabAccess_MakeRequestClientContextCall
- type MockGitlabAccess_MakeRequestClientHeaderCall
- func (c *MockGitlabAccess_MakeRequestClientHeaderCall) Do(f func() (metadata.MD, error)) *MockGitlabAccess_MakeRequestClientHeaderCall
- func (c *MockGitlabAccess_MakeRequestClientHeaderCall) DoAndReturn(f func() (metadata.MD, error)) *MockGitlabAccess_MakeRequestClientHeaderCall
- func (c *MockGitlabAccess_MakeRequestClientHeaderCall) Return(arg0 metadata.MD, arg1 error) *MockGitlabAccess_MakeRequestClientHeaderCall
- type MockGitlabAccess_MakeRequestClientMockRecorder
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) CloseSend() *MockGitlabAccess_MakeRequestClientCloseSendCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Context() *MockGitlabAccess_MakeRequestClientContextCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Header() *MockGitlabAccess_MakeRequestClientHeaderCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Recv() *MockGitlabAccess_MakeRequestClientRecvCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg(arg0 any) *MockGitlabAccess_MakeRequestClientRecvMsgCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Send(arg0 any) *MockGitlabAccess_MakeRequestClientSendCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg(arg0 any) *MockGitlabAccess_MakeRequestClientSendMsgCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Trailer() *MockGitlabAccess_MakeRequestClientTrailerCall
- type MockGitlabAccess_MakeRequestClientRecvCall
- func (c *MockGitlabAccess_MakeRequestClientRecvCall) Do(f func() (*grpctool.HttpResponse, error)) *MockGitlabAccess_MakeRequestClientRecvCall
- func (c *MockGitlabAccess_MakeRequestClientRecvCall) DoAndReturn(f func() (*grpctool.HttpResponse, error)) *MockGitlabAccess_MakeRequestClientRecvCall
- func (c *MockGitlabAccess_MakeRequestClientRecvCall) Return(arg0 *grpctool.HttpResponse, arg1 error) *MockGitlabAccess_MakeRequestClientRecvCall
- type MockGitlabAccess_MakeRequestClientRecvMsgCall
- func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) Do(f func(any) error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
- func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn(f func(any) error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
- func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
- type MockGitlabAccess_MakeRequestClientSendCall
- func (c *MockGitlabAccess_MakeRequestClientSendCall) Do(f func(*grpctool.HttpRequest) error) *MockGitlabAccess_MakeRequestClientSendCall
- func (c *MockGitlabAccess_MakeRequestClientSendCall) DoAndReturn(f func(*grpctool.HttpRequest) error) *MockGitlabAccess_MakeRequestClientSendCall
- func (c *MockGitlabAccess_MakeRequestClientSendCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientSendCall
- type MockGitlabAccess_MakeRequestClientSendMsgCall
- func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) Do(f func(any) error) *MockGitlabAccess_MakeRequestClientSendMsgCall
- func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn(f func(any) error) *MockGitlabAccess_MakeRequestClientSendMsgCall
- func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientSendMsgCall
- type MockGitlabAccess_MakeRequestClientTrailerCall
- func (c *MockGitlabAccess_MakeRequestClientTrailerCall) Do(f func() metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
- func (c *MockGitlabAccess_MakeRequestClientTrailerCall) DoAndReturn(f func() metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
- func (c *MockGitlabAccess_MakeRequestClientTrailerCall) Return(arg0 metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitlabAccessClient ¶
type MockGitlabAccessClient struct {
// contains filtered or unexported fields
}
MockGitlabAccessClient is a mock of GitlabAccessClient interface.
func NewMockGitlabAccessClient ¶
func NewMockGitlabAccessClient(ctrl *gomock.Controller) *MockGitlabAccessClient
NewMockGitlabAccessClient creates a new mock instance.
func (*MockGitlabAccessClient) EXPECT ¶
func (m *MockGitlabAccessClient) EXPECT() *MockGitlabAccessClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitlabAccessClient) MakeRequest ¶
func (m *MockGitlabAccessClient) MakeRequest(arg0 context.Context, arg1 ...grpc.CallOption) (rpc.GitlabAccess_MakeRequestClient, error)
MakeRequest mocks base method.
type MockGitlabAccessClientMakeRequestCall ¶ added in v16.8.0
MockGitlabAccessClientMakeRequestCall wrap *gomock.Call
func (*MockGitlabAccessClientMakeRequestCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccessClientMakeRequestCall) Do(f func(context.Context, ...grpc.CallOption) (rpc.GitlabAccess_MakeRequestClient, error)) *MockGitlabAccessClientMakeRequestCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccessClientMakeRequestCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccessClientMakeRequestCall) DoAndReturn(f func(context.Context, ...grpc.CallOption) (rpc.GitlabAccess_MakeRequestClient, error)) *MockGitlabAccessClientMakeRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccessClientMakeRequestCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccessClientMakeRequestCall) Return(arg0 rpc.GitlabAccess_MakeRequestClient, arg1 error) *MockGitlabAccessClientMakeRequestCall
Return rewrite *gomock.Call.Return
type MockGitlabAccessClientMockRecorder ¶
type MockGitlabAccessClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGitlabAccessClientMockRecorder is the mock recorder for MockGitlabAccessClient.
func (*MockGitlabAccessClientMockRecorder) MakeRequest ¶
func (mr *MockGitlabAccessClientMockRecorder) MakeRequest(arg0 any, arg1 ...any) *MockGitlabAccessClientMakeRequestCall
MakeRequest indicates an expected call of MakeRequest.
type MockGitlabAccess_MakeRequestClient ¶
type MockGitlabAccess_MakeRequestClient struct {
// contains filtered or unexported fields
}
MockGitlabAccess_MakeRequestClient is a mock of GitlabAccess_MakeRequestClient interface.
func NewMockGitlabAccess_MakeRequestClient ¶
func NewMockGitlabAccess_MakeRequestClient(ctrl *gomock.Controller) *MockGitlabAccess_MakeRequestClient
NewMockGitlabAccess_MakeRequestClient creates a new mock instance.
func (*MockGitlabAccess_MakeRequestClient) CloseSend ¶
func (m *MockGitlabAccess_MakeRequestClient) CloseSend() error
CloseSend mocks base method.
func (*MockGitlabAccess_MakeRequestClient) Context ¶
func (m *MockGitlabAccess_MakeRequestClient) Context() context.Context
Context mocks base method.
func (*MockGitlabAccess_MakeRequestClient) EXPECT ¶
func (m *MockGitlabAccess_MakeRequestClient) EXPECT() *MockGitlabAccess_MakeRequestClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitlabAccess_MakeRequestClient) Header ¶
func (m *MockGitlabAccess_MakeRequestClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockGitlabAccess_MakeRequestClient) Recv ¶
func (m *MockGitlabAccess_MakeRequestClient) Recv() (*grpctool.HttpResponse, error)
Recv mocks base method.
func (*MockGitlabAccess_MakeRequestClient) RecvMsg ¶
func (m *MockGitlabAccess_MakeRequestClient) RecvMsg(arg0 any) error
RecvMsg mocks base method.
func (*MockGitlabAccess_MakeRequestClient) Send ¶
func (m *MockGitlabAccess_MakeRequestClient) Send(arg0 *grpctool.HttpRequest) error
Send mocks base method.
func (*MockGitlabAccess_MakeRequestClient) SendMsg ¶
func (m *MockGitlabAccess_MakeRequestClient) SendMsg(arg0 any) error
SendMsg mocks base method.
func (*MockGitlabAccess_MakeRequestClient) Trailer ¶
func (m *MockGitlabAccess_MakeRequestClient) Trailer() metadata.MD
Trailer mocks base method.
type MockGitlabAccess_MakeRequestClientCloseSendCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientCloseSendCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientCloseSendCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) Do(f func() error) *MockGitlabAccess_MakeRequestClientCloseSendCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn(f func() error) *MockGitlabAccess_MakeRequestClientCloseSendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientCloseSendCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientCloseSendCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientCloseSendCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientContextCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientContextCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientContextCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientContextCall) Do(f func() context.Context) *MockGitlabAccess_MakeRequestClientContextCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientContextCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientContextCall) DoAndReturn(f func() context.Context) *MockGitlabAccess_MakeRequestClientContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientContextCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientContextCall) Return(arg0 context.Context) *MockGitlabAccess_MakeRequestClientContextCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientHeaderCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientHeaderCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientHeaderCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientHeaderCall) Do(f func() (metadata.MD, error)) *MockGitlabAccess_MakeRequestClientHeaderCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientHeaderCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientHeaderCall) DoAndReturn(f func() (metadata.MD, error)) *MockGitlabAccess_MakeRequestClientHeaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientHeaderCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientHeaderCall) Return(arg0 metadata.MD, arg1 error) *MockGitlabAccess_MakeRequestClientHeaderCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientMockRecorder ¶
type MockGitlabAccess_MakeRequestClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGitlabAccess_MakeRequestClientMockRecorder is the mock recorder for MockGitlabAccess_MakeRequestClient.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) CloseSend ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) CloseSend() *MockGitlabAccess_MakeRequestClientCloseSendCall
CloseSend indicates an expected call of CloseSend.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Context ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Context() *MockGitlabAccess_MakeRequestClientContextCall
Context indicates an expected call of Context.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Header ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Header() *MockGitlabAccess_MakeRequestClientHeaderCall
Header indicates an expected call of Header.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Recv ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Recv() *MockGitlabAccess_MakeRequestClientRecvCall
Recv indicates an expected call of Recv.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg(arg0 any) *MockGitlabAccess_MakeRequestClientRecvMsgCall
RecvMsg indicates an expected call of RecvMsg.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Send ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Send(arg0 any) *MockGitlabAccess_MakeRequestClientSendCall
Send indicates an expected call of Send.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg(arg0 any) *MockGitlabAccess_MakeRequestClientSendMsgCall
SendMsg indicates an expected call of SendMsg.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Trailer ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Trailer() *MockGitlabAccess_MakeRequestClientTrailerCall
Trailer indicates an expected call of Trailer.
type MockGitlabAccess_MakeRequestClientRecvCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientRecvCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientRecvCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvCall) Do(f func() (*grpctool.HttpResponse, error)) *MockGitlabAccess_MakeRequestClientRecvCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientRecvCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvCall) DoAndReturn(f func() (*grpctool.HttpResponse, error)) *MockGitlabAccess_MakeRequestClientRecvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientRecvCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvCall) Return(arg0 *grpctool.HttpResponse, arg1 error) *MockGitlabAccess_MakeRequestClientRecvCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientRecvMsgCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientRecvMsgCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientRecvMsgCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) Do(f func(any) error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn(f func(any) error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientRecvMsgCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientRecvMsgCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientRecvMsgCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientSendCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientSendCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientSendCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendCall) Do(f func(*grpctool.HttpRequest) error) *MockGitlabAccess_MakeRequestClientSendCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientSendCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendCall) DoAndReturn(f func(*grpctool.HttpRequest) error) *MockGitlabAccess_MakeRequestClientSendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientSendCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientSendCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientSendMsgCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientSendMsgCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientSendMsgCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) Do(f func(any) error) *MockGitlabAccess_MakeRequestClientSendMsgCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn(f func(any) error) *MockGitlabAccess_MakeRequestClientSendMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientSendMsgCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientSendMsgCall) Return(arg0 error) *MockGitlabAccess_MakeRequestClientSendMsgCall
Return rewrite *gomock.Call.Return
type MockGitlabAccess_MakeRequestClientTrailerCall ¶ added in v16.8.0
MockGitlabAccess_MakeRequestClientTrailerCall wrap *gomock.Call
func (*MockGitlabAccess_MakeRequestClientTrailerCall) Do ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientTrailerCall) Do(f func() metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
Do rewrite *gomock.Call.Do
func (*MockGitlabAccess_MakeRequestClientTrailerCall) DoAndReturn ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientTrailerCall) DoAndReturn(f func() metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGitlabAccess_MakeRequestClientTrailerCall) Return ¶ added in v16.8.0
func (c *MockGitlabAccess_MakeRequestClientTrailerCall) Return(arg0 metadata.MD) *MockGitlabAccess_MakeRequestClientTrailerCall
Return rewrite *gomock.Call.Return