Documentation ¶
Overview ¶
Mocks for GitLab access RPC.
Code generated by MockGen. DO NOT EDIT. Source: gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/gitlab_access/rpc (interfaces: GitlabAccessClient,GitlabAccess_MakeRequestClient)
Generated by this command:
mockgen -typed -destination gitlab_access.go -package mock_gitlab_access gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/gitlab_access/rpc GitlabAccessClient,GitlabAccess_MakeRequestClient
Package mock_gitlab_access is a generated GoMock package.
Index ¶
- type GitlabAccessClientMakeRequestCall
- func (c *GitlabAccessClientMakeRequestCall) Do(...) *GitlabAccessClientMakeRequestCall
- func (c *GitlabAccessClientMakeRequestCall) DoAndReturn(...) *GitlabAccessClientMakeRequestCall
- func (c *GitlabAccessClientMakeRequestCall) Return(arg0 rpc.GitlabAccess_MakeRequestClient, arg1 error) *GitlabAccessClientMakeRequestCall
- type GitlabAccess_MakeRequestClientCloseSendCall
- func (c *GitlabAccess_MakeRequestClientCloseSendCall) Do(f func() error) *GitlabAccess_MakeRequestClientCloseSendCall
- func (c *GitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn(f func() error) *GitlabAccess_MakeRequestClientCloseSendCall
- func (c *GitlabAccess_MakeRequestClientCloseSendCall) Return(arg0 error) *GitlabAccess_MakeRequestClientCloseSendCall
- type GitlabAccess_MakeRequestClientContextCall
- func (c *GitlabAccess_MakeRequestClientContextCall) Do(f func() context.Context) *GitlabAccess_MakeRequestClientContextCall
- func (c *GitlabAccess_MakeRequestClientContextCall) DoAndReturn(f func() context.Context) *GitlabAccess_MakeRequestClientContextCall
- func (c *GitlabAccess_MakeRequestClientContextCall) Return(arg0 context.Context) *GitlabAccess_MakeRequestClientContextCall
- type GitlabAccess_MakeRequestClientHeaderCall
- func (c *GitlabAccess_MakeRequestClientHeaderCall) Do(f func() (metadata.MD, error)) *GitlabAccess_MakeRequestClientHeaderCall
- func (c *GitlabAccess_MakeRequestClientHeaderCall) DoAndReturn(f func() (metadata.MD, error)) *GitlabAccess_MakeRequestClientHeaderCall
- func (c *GitlabAccess_MakeRequestClientHeaderCall) Return(arg0 metadata.MD, arg1 error) *GitlabAccess_MakeRequestClientHeaderCall
- type GitlabAccess_MakeRequestClientRecvCall
- func (c *GitlabAccess_MakeRequestClientRecvCall) Do(f func() (*grpctool.HttpResponse, error)) *GitlabAccess_MakeRequestClientRecvCall
- func (c *GitlabAccess_MakeRequestClientRecvCall) DoAndReturn(f func() (*grpctool.HttpResponse, error)) *GitlabAccess_MakeRequestClientRecvCall
- func (c *GitlabAccess_MakeRequestClientRecvCall) Return(arg0 *grpctool.HttpResponse, arg1 error) *GitlabAccess_MakeRequestClientRecvCall
- type GitlabAccess_MakeRequestClientRecvMsgCall
- func (c *GitlabAccess_MakeRequestClientRecvMsgCall) Do(f func(any) error) *GitlabAccess_MakeRequestClientRecvMsgCall
- func (c *GitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn(f func(any) error) *GitlabAccess_MakeRequestClientRecvMsgCall
- func (c *GitlabAccess_MakeRequestClientRecvMsgCall) Return(arg0 error) *GitlabAccess_MakeRequestClientRecvMsgCall
- type GitlabAccess_MakeRequestClientSendCall
- func (c *GitlabAccess_MakeRequestClientSendCall) Do(f func(*grpctool.HttpRequest) error) *GitlabAccess_MakeRequestClientSendCall
- func (c *GitlabAccess_MakeRequestClientSendCall) DoAndReturn(f func(*grpctool.HttpRequest) error) *GitlabAccess_MakeRequestClientSendCall
- func (c *GitlabAccess_MakeRequestClientSendCall) Return(arg0 error) *GitlabAccess_MakeRequestClientSendCall
- type GitlabAccess_MakeRequestClientSendMsgCall
- func (c *GitlabAccess_MakeRequestClientSendMsgCall) Do(f func(any) error) *GitlabAccess_MakeRequestClientSendMsgCall
- func (c *GitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn(f func(any) error) *GitlabAccess_MakeRequestClientSendMsgCall
- func (c *GitlabAccess_MakeRequestClientSendMsgCall) Return(arg0 error) *GitlabAccess_MakeRequestClientSendMsgCall
- type GitlabAccess_MakeRequestClientTrailerCall
- func (c *GitlabAccess_MakeRequestClientTrailerCall) Do(f func() metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
- func (c *GitlabAccess_MakeRequestClientTrailerCall) DoAndReturn(f func() metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
- func (c *GitlabAccess_MakeRequestClientTrailerCall) Return(arg0 metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
- type MockGitlabAccessClient
- 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_MakeRequestClientMockRecorder
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) CloseSend() *GitlabAccess_MakeRequestClientCloseSendCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Context() *GitlabAccess_MakeRequestClientContextCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Header() *GitlabAccess_MakeRequestClientHeaderCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Recv() *GitlabAccess_MakeRequestClientRecvCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg(arg0 any) *GitlabAccess_MakeRequestClientRecvMsgCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Send(arg0 any) *GitlabAccess_MakeRequestClientSendCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg(arg0 any) *GitlabAccess_MakeRequestClientSendMsgCall
- func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Trailer() *GitlabAccess_MakeRequestClientTrailerCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitlabAccessClientMakeRequestCall ¶ added in v16.5.0
GitlabAccessClientMakeRequestCall wrap *gomock.Call
func (*GitlabAccessClientMakeRequestCall) Do ¶ added in v16.5.0
func (c *GitlabAccessClientMakeRequestCall) Do(f func(context.Context, ...grpc.CallOption) (rpc.GitlabAccess_MakeRequestClient, error)) *GitlabAccessClientMakeRequestCall
Do rewrite *gomock.Call.Do
func (*GitlabAccessClientMakeRequestCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccessClientMakeRequestCall) DoAndReturn(f func(context.Context, ...grpc.CallOption) (rpc.GitlabAccess_MakeRequestClient, error)) *GitlabAccessClientMakeRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccessClientMakeRequestCall) Return ¶ added in v16.5.0
func (c *GitlabAccessClientMakeRequestCall) Return(arg0 rpc.GitlabAccess_MakeRequestClient, arg1 error) *GitlabAccessClientMakeRequestCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientCloseSendCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientCloseSendCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientCloseSendCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientCloseSendCall) Do(f func() error) *GitlabAccess_MakeRequestClientCloseSendCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientCloseSendCall) DoAndReturn(f func() error) *GitlabAccess_MakeRequestClientCloseSendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientCloseSendCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientCloseSendCall) Return(arg0 error) *GitlabAccess_MakeRequestClientCloseSendCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientContextCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientContextCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientContextCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientContextCall) Do(f func() context.Context) *GitlabAccess_MakeRequestClientContextCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientContextCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientContextCall) DoAndReturn(f func() context.Context) *GitlabAccess_MakeRequestClientContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientContextCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientContextCall) Return(arg0 context.Context) *GitlabAccess_MakeRequestClientContextCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientHeaderCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientHeaderCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientHeaderCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientHeaderCall) Do(f func() (metadata.MD, error)) *GitlabAccess_MakeRequestClientHeaderCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientHeaderCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientHeaderCall) DoAndReturn(f func() (metadata.MD, error)) *GitlabAccess_MakeRequestClientHeaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientHeaderCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientHeaderCall) Return(arg0 metadata.MD, arg1 error) *GitlabAccess_MakeRequestClientHeaderCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientRecvCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientRecvCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientRecvCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvCall) Do(f func() (*grpctool.HttpResponse, error)) *GitlabAccess_MakeRequestClientRecvCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientRecvCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvCall) DoAndReturn(f func() (*grpctool.HttpResponse, error)) *GitlabAccess_MakeRequestClientRecvCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientRecvCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvCall) Return(arg0 *grpctool.HttpResponse, arg1 error) *GitlabAccess_MakeRequestClientRecvCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientRecvMsgCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientRecvMsgCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientRecvMsgCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvMsgCall) Do(f func(any) error) *GitlabAccess_MakeRequestClientRecvMsgCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvMsgCall) DoAndReturn(f func(any) error) *GitlabAccess_MakeRequestClientRecvMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientRecvMsgCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientRecvMsgCall) Return(arg0 error) *GitlabAccess_MakeRequestClientRecvMsgCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientSendCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientSendCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientSendCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendCall) Do(f func(*grpctool.HttpRequest) error) *GitlabAccess_MakeRequestClientSendCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientSendCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendCall) DoAndReturn(f func(*grpctool.HttpRequest) error) *GitlabAccess_MakeRequestClientSendCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientSendCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendCall) Return(arg0 error) *GitlabAccess_MakeRequestClientSendCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientSendMsgCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientSendMsgCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientSendMsgCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendMsgCall) Do(f func(any) error) *GitlabAccess_MakeRequestClientSendMsgCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendMsgCall) DoAndReturn(f func(any) error) *GitlabAccess_MakeRequestClientSendMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientSendMsgCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientSendMsgCall) Return(arg0 error) *GitlabAccess_MakeRequestClientSendMsgCall
Return rewrite *gomock.Call.Return
type GitlabAccess_MakeRequestClientTrailerCall ¶ added in v16.5.0
GitlabAccess_MakeRequestClientTrailerCall wrap *gomock.Call
func (*GitlabAccess_MakeRequestClientTrailerCall) Do ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientTrailerCall) Do(f func() metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
Do rewrite *gomock.Call.Do
func (*GitlabAccess_MakeRequestClientTrailerCall) DoAndReturn ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientTrailerCall) DoAndReturn(f func() metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*GitlabAccess_MakeRequestClientTrailerCall) Return ¶ added in v16.5.0
func (c *GitlabAccess_MakeRequestClientTrailerCall) Return(arg0 metadata.MD) *GitlabAccess_MakeRequestClientTrailerCall
Return rewrite *gomock.Call.Return
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 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) *GitlabAccessClientMakeRequestCall
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_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() *GitlabAccess_MakeRequestClientCloseSendCall
CloseSend indicates an expected call of CloseSend.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Context ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Context() *GitlabAccess_MakeRequestClientContextCall
Context indicates an expected call of Context.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Header ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Header() *GitlabAccess_MakeRequestClientHeaderCall
Header indicates an expected call of Header.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Recv ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Recv() *GitlabAccess_MakeRequestClientRecvCall
Recv indicates an expected call of Recv.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) RecvMsg(arg0 any) *GitlabAccess_MakeRequestClientRecvMsgCall
RecvMsg indicates an expected call of RecvMsg.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Send ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Send(arg0 any) *GitlabAccess_MakeRequestClientSendCall
Send indicates an expected call of Send.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) SendMsg(arg0 any) *GitlabAccess_MakeRequestClientSendMsgCall
SendMsg indicates an expected call of SendMsg.
func (*MockGitlabAccess_MakeRequestClientMockRecorder) Trailer ¶
func (mr *MockGitlabAccess_MakeRequestClientMockRecorder) Trailer() *GitlabAccess_MakeRequestClientTrailerCall
Trailer indicates an expected call of Trailer.