Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockLeadershipContext
- func (m *MockLeadershipContext) EXPECT() *MockLeadershipContextMockRecorder
- func (m *MockLeadershipContext) IsLeader() (bool, error)
- func (m *MockLeadershipContext) LeaderSettings(arg0 context.Context) (map[string]string, error)
- func (m *MockLeadershipContext) WriteLeaderSettings(arg0 context.Context, arg1 map[string]string) error
- type MockLeadershipContextIsLeaderCall
- func (c *MockLeadershipContextIsLeaderCall) Do(f func() (bool, error)) *MockLeadershipContextIsLeaderCall
- func (c *MockLeadershipContextIsLeaderCall) DoAndReturn(f func() (bool, error)) *MockLeadershipContextIsLeaderCall
- func (c *MockLeadershipContextIsLeaderCall) Return(arg0 bool, arg1 error) *MockLeadershipContextIsLeaderCall
- type MockLeadershipContextLeaderSettingsCall
- func (c *MockLeadershipContextLeaderSettingsCall) Do(f func(context.Context) (map[string]string, error)) *MockLeadershipContextLeaderSettingsCall
- func (c *MockLeadershipContextLeaderSettingsCall) DoAndReturn(f func(context.Context) (map[string]string, error)) *MockLeadershipContextLeaderSettingsCall
- func (c *MockLeadershipContextLeaderSettingsCall) Return(arg0 map[string]string, arg1 error) *MockLeadershipContextLeaderSettingsCall
- type MockLeadershipContextMockRecorder
- func (mr *MockLeadershipContextMockRecorder) IsLeader() *MockLeadershipContextIsLeaderCall
- func (mr *MockLeadershipContextMockRecorder) LeaderSettings(arg0 any) *MockLeadershipContextLeaderSettingsCall
- func (mr *MockLeadershipContextMockRecorder) WriteLeaderSettings(arg0, arg1 any) *MockLeadershipContextWriteLeaderSettingsCall
- type MockLeadershipContextWriteLeaderSettingsCall
- func (c *MockLeadershipContextWriteLeaderSettingsCall) Do(f func(context.Context, map[string]string) error) *MockLeadershipContextWriteLeaderSettingsCall
- func (c *MockLeadershipContextWriteLeaderSettingsCall) DoAndReturn(f func(context.Context, map[string]string) error) *MockLeadershipContextWriteLeaderSettingsCall
- func (c *MockLeadershipContextWriteLeaderSettingsCall) Return(arg0 error) *MockLeadershipContextWriteLeaderSettingsCall
- type MockOpenedResourceClient
- type MockOpenedResourceClientGetResourceCall
- func (c *MockOpenedResourceClientGetResourceCall) Do(f func(context.Context, string) (resource.Resource, io.ReadCloser, error)) *MockOpenedResourceClientGetResourceCall
- func (c *MockOpenedResourceClientGetResourceCall) DoAndReturn(f func(context.Context, string) (resource.Resource, io.ReadCloser, error)) *MockOpenedResourceClientGetResourceCall
- func (c *MockOpenedResourceClientGetResourceCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockOpenedResourceClientGetResourceCall
- type MockOpenedResourceClientMockRecorder
- type MockPayloadAPIClient
- func (m *MockPayloadAPIClient) EXPECT() *MockPayloadAPIClientMockRecorder
- func (m *MockPayloadAPIClient) List(arg0 context.Context, arg1 ...string) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) SetStatus(arg0 context.Context, arg1 string, arg2 ...string) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) Track(arg0 context.Context, arg1 ...payloads.Payload) ([]payloads.Result, error)
- func (m *MockPayloadAPIClient) Untrack(arg0 context.Context, arg1 ...string) ([]payloads.Result, error)
- type MockPayloadAPIClientListCall
- func (c *MockPayloadAPIClientListCall) Do(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientListCall
- func (c *MockPayloadAPIClientListCall) DoAndReturn(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientListCall
- func (c *MockPayloadAPIClientListCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientListCall
- type MockPayloadAPIClientMockRecorder
- func (mr *MockPayloadAPIClientMockRecorder) List(arg0 any, arg1 ...any) *MockPayloadAPIClientListCall
- func (mr *MockPayloadAPIClientMockRecorder) SetStatus(arg0, arg1 any, arg2 ...any) *MockPayloadAPIClientSetStatusCall
- func (mr *MockPayloadAPIClientMockRecorder) Track(arg0 any, arg1 ...any) *MockPayloadAPIClientTrackCall
- func (mr *MockPayloadAPIClientMockRecorder) Untrack(arg0 any, arg1 ...any) *MockPayloadAPIClientUntrackCall
- type MockPayloadAPIClientSetStatusCall
- func (c *MockPayloadAPIClientSetStatusCall) Do(f func(context.Context, string, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientSetStatusCall
- func (c *MockPayloadAPIClientSetStatusCall) DoAndReturn(f func(context.Context, string, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientSetStatusCall
- func (c *MockPayloadAPIClientSetStatusCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientSetStatusCall
- type MockPayloadAPIClientTrackCall
- func (c *MockPayloadAPIClientTrackCall) Do(f func(context.Context, ...payloads.Payload) ([]payloads.Result, error)) *MockPayloadAPIClientTrackCall
- func (c *MockPayloadAPIClientTrackCall) DoAndReturn(f func(context.Context, ...payloads.Payload) ([]payloads.Result, error)) *MockPayloadAPIClientTrackCall
- func (c *MockPayloadAPIClientTrackCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientTrackCall
- type MockPayloadAPIClientUntrackCall
- func (c *MockPayloadAPIClientUntrackCall) Do(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientUntrackCall
- func (c *MockPayloadAPIClientUntrackCall) DoAndReturn(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientUntrackCall
- func (c *MockPayloadAPIClientUntrackCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientUntrackCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLeadershipContext ¶
type MockLeadershipContext struct {
// contains filtered or unexported fields
}
MockLeadershipContext is a mock of LeadershipContext interface.
func NewMockLeadershipContext ¶
func NewMockLeadershipContext(ctrl *gomock.Controller) *MockLeadershipContext
NewMockLeadershipContext creates a new mock instance.
func (*MockLeadershipContext) EXPECT ¶
func (m *MockLeadershipContext) EXPECT() *MockLeadershipContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeadershipContext) IsLeader ¶
func (m *MockLeadershipContext) IsLeader() (bool, error)
IsLeader mocks base method.
func (*MockLeadershipContext) LeaderSettings ¶
LeaderSettings mocks base method.
func (*MockLeadershipContext) WriteLeaderSettings ¶
func (m *MockLeadershipContext) WriteLeaderSettings(arg0 context.Context, arg1 map[string]string) error
WriteLeaderSettings mocks base method.
type MockLeadershipContextIsLeaderCall ¶
MockLeadershipContextIsLeaderCall wrap *gomock.Call
func (*MockLeadershipContextIsLeaderCall) Do ¶
func (c *MockLeadershipContextIsLeaderCall) Do(f func() (bool, error)) *MockLeadershipContextIsLeaderCall
Do rewrite *gomock.Call.Do
func (*MockLeadershipContextIsLeaderCall) DoAndReturn ¶
func (c *MockLeadershipContextIsLeaderCall) DoAndReturn(f func() (bool, error)) *MockLeadershipContextIsLeaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLeadershipContextIsLeaderCall) Return ¶
func (c *MockLeadershipContextIsLeaderCall) Return(arg0 bool, arg1 error) *MockLeadershipContextIsLeaderCall
Return rewrite *gomock.Call.Return
type MockLeadershipContextLeaderSettingsCall ¶
MockLeadershipContextLeaderSettingsCall wrap *gomock.Call
func (*MockLeadershipContextLeaderSettingsCall) Do ¶
func (c *MockLeadershipContextLeaderSettingsCall) Do(f func(context.Context) (map[string]string, error)) *MockLeadershipContextLeaderSettingsCall
Do rewrite *gomock.Call.Do
func (*MockLeadershipContextLeaderSettingsCall) DoAndReturn ¶
func (c *MockLeadershipContextLeaderSettingsCall) DoAndReturn(f func(context.Context) (map[string]string, error)) *MockLeadershipContextLeaderSettingsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLeadershipContextLeaderSettingsCall) Return ¶
func (c *MockLeadershipContextLeaderSettingsCall) Return(arg0 map[string]string, arg1 error) *MockLeadershipContextLeaderSettingsCall
Return rewrite *gomock.Call.Return
type MockLeadershipContextMockRecorder ¶
type MockLeadershipContextMockRecorder struct {
// contains filtered or unexported fields
}
MockLeadershipContextMockRecorder is the mock recorder for MockLeadershipContext.
func (*MockLeadershipContextMockRecorder) IsLeader ¶
func (mr *MockLeadershipContextMockRecorder) IsLeader() *MockLeadershipContextIsLeaderCall
IsLeader indicates an expected call of IsLeader.
func (*MockLeadershipContextMockRecorder) LeaderSettings ¶
func (mr *MockLeadershipContextMockRecorder) LeaderSettings(arg0 any) *MockLeadershipContextLeaderSettingsCall
LeaderSettings indicates an expected call of LeaderSettings.
func (*MockLeadershipContextMockRecorder) WriteLeaderSettings ¶
func (mr *MockLeadershipContextMockRecorder) WriteLeaderSettings(arg0, arg1 any) *MockLeadershipContextWriteLeaderSettingsCall
WriteLeaderSettings indicates an expected call of WriteLeaderSettings.
type MockLeadershipContextWriteLeaderSettingsCall ¶
MockLeadershipContextWriteLeaderSettingsCall wrap *gomock.Call
func (*MockLeadershipContextWriteLeaderSettingsCall) Do ¶
func (c *MockLeadershipContextWriteLeaderSettingsCall) Do(f func(context.Context, map[string]string) error) *MockLeadershipContextWriteLeaderSettingsCall
Do rewrite *gomock.Call.Do
func (*MockLeadershipContextWriteLeaderSettingsCall) DoAndReturn ¶
func (c *MockLeadershipContextWriteLeaderSettingsCall) DoAndReturn(f func(context.Context, map[string]string) error) *MockLeadershipContextWriteLeaderSettingsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLeadershipContextWriteLeaderSettingsCall) Return ¶
func (c *MockLeadershipContextWriteLeaderSettingsCall) Return(arg0 error) *MockLeadershipContextWriteLeaderSettingsCall
Return rewrite *gomock.Call.Return
type MockOpenedResourceClient ¶
type MockOpenedResourceClient struct {
// contains filtered or unexported fields
}
MockOpenedResourceClient is a mock of OpenedResourceClient interface.
func NewMockOpenedResourceClient ¶
func NewMockOpenedResourceClient(ctrl *gomock.Controller) *MockOpenedResourceClient
NewMockOpenedResourceClient creates a new mock instance.
func (*MockOpenedResourceClient) EXPECT ¶
func (m *MockOpenedResourceClient) EXPECT() *MockOpenedResourceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOpenedResourceClient) GetResource ¶
func (m *MockOpenedResourceClient) GetResource(arg0 context.Context, arg1 string) (resource.Resource, io.ReadCloser, error)
GetResource mocks base method.
type MockOpenedResourceClientGetResourceCall ¶
MockOpenedResourceClientGetResourceCall wrap *gomock.Call
func (*MockOpenedResourceClientGetResourceCall) Do ¶
func (c *MockOpenedResourceClientGetResourceCall) Do(f func(context.Context, string) (resource.Resource, io.ReadCloser, error)) *MockOpenedResourceClientGetResourceCall
Do rewrite *gomock.Call.Do
func (*MockOpenedResourceClientGetResourceCall) DoAndReturn ¶
func (c *MockOpenedResourceClientGetResourceCall) DoAndReturn(f func(context.Context, string) (resource.Resource, io.ReadCloser, error)) *MockOpenedResourceClientGetResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockOpenedResourceClientGetResourceCall) Return ¶
func (c *MockOpenedResourceClientGetResourceCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockOpenedResourceClientGetResourceCall
Return rewrite *gomock.Call.Return
type MockOpenedResourceClientMockRecorder ¶
type MockOpenedResourceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpenedResourceClientMockRecorder is the mock recorder for MockOpenedResourceClient.
func (*MockOpenedResourceClientMockRecorder) GetResource ¶
func (mr *MockOpenedResourceClientMockRecorder) GetResource(arg0, arg1 any) *MockOpenedResourceClientGetResourceCall
GetResource indicates an expected call of GetResource.
type MockPayloadAPIClient ¶
type MockPayloadAPIClient struct {
// contains filtered or unexported fields
}
MockPayloadAPIClient is a mock of PayloadAPIClient interface.
func NewMockPayloadAPIClient ¶
func NewMockPayloadAPIClient(ctrl *gomock.Controller) *MockPayloadAPIClient
NewMockPayloadAPIClient creates a new mock instance.
func (*MockPayloadAPIClient) EXPECT ¶
func (m *MockPayloadAPIClient) EXPECT() *MockPayloadAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPayloadAPIClient) List ¶
func (m *MockPayloadAPIClient) List(arg0 context.Context, arg1 ...string) ([]payloads.Result, error)
List mocks base method.
func (*MockPayloadAPIClient) SetStatus ¶
func (m *MockPayloadAPIClient) SetStatus(arg0 context.Context, arg1 string, arg2 ...string) ([]payloads.Result, error)
SetStatus mocks base method.
type MockPayloadAPIClientListCall ¶
MockPayloadAPIClientListCall wrap *gomock.Call
func (*MockPayloadAPIClientListCall) Do ¶
func (c *MockPayloadAPIClientListCall) Do(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientListCall
Do rewrite *gomock.Call.Do
func (*MockPayloadAPIClientListCall) DoAndReturn ¶
func (c *MockPayloadAPIClientListCall) DoAndReturn(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPayloadAPIClientListCall) Return ¶
func (c *MockPayloadAPIClientListCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientListCall
Return rewrite *gomock.Call.Return
type MockPayloadAPIClientMockRecorder ¶
type MockPayloadAPIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPayloadAPIClientMockRecorder is the mock recorder for MockPayloadAPIClient.
func (*MockPayloadAPIClientMockRecorder) List ¶
func (mr *MockPayloadAPIClientMockRecorder) List(arg0 any, arg1 ...any) *MockPayloadAPIClientListCall
List indicates an expected call of List.
func (*MockPayloadAPIClientMockRecorder) SetStatus ¶
func (mr *MockPayloadAPIClientMockRecorder) SetStatus(arg0, arg1 any, arg2 ...any) *MockPayloadAPIClientSetStatusCall
SetStatus indicates an expected call of SetStatus.
func (*MockPayloadAPIClientMockRecorder) Track ¶
func (mr *MockPayloadAPIClientMockRecorder) Track(arg0 any, arg1 ...any) *MockPayloadAPIClientTrackCall
Track indicates an expected call of Track.
func (*MockPayloadAPIClientMockRecorder) Untrack ¶
func (mr *MockPayloadAPIClientMockRecorder) Untrack(arg0 any, arg1 ...any) *MockPayloadAPIClientUntrackCall
Untrack indicates an expected call of Untrack.
type MockPayloadAPIClientSetStatusCall ¶
MockPayloadAPIClientSetStatusCall wrap *gomock.Call
func (*MockPayloadAPIClientSetStatusCall) Do ¶
func (c *MockPayloadAPIClientSetStatusCall) Do(f func(context.Context, string, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientSetStatusCall
Do rewrite *gomock.Call.Do
func (*MockPayloadAPIClientSetStatusCall) DoAndReturn ¶
func (c *MockPayloadAPIClientSetStatusCall) DoAndReturn(f func(context.Context, string, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientSetStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPayloadAPIClientSetStatusCall) Return ¶
func (c *MockPayloadAPIClientSetStatusCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientSetStatusCall
Return rewrite *gomock.Call.Return
type MockPayloadAPIClientTrackCall ¶
MockPayloadAPIClientTrackCall wrap *gomock.Call
func (*MockPayloadAPIClientTrackCall) Do ¶
func (c *MockPayloadAPIClientTrackCall) Do(f func(context.Context, ...payloads.Payload) ([]payloads.Result, error)) *MockPayloadAPIClientTrackCall
Do rewrite *gomock.Call.Do
func (*MockPayloadAPIClientTrackCall) DoAndReturn ¶
func (c *MockPayloadAPIClientTrackCall) DoAndReturn(f func(context.Context, ...payloads.Payload) ([]payloads.Result, error)) *MockPayloadAPIClientTrackCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPayloadAPIClientTrackCall) Return ¶
func (c *MockPayloadAPIClientTrackCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientTrackCall
Return rewrite *gomock.Call.Return
type MockPayloadAPIClientUntrackCall ¶
MockPayloadAPIClientUntrackCall wrap *gomock.Call
func (*MockPayloadAPIClientUntrackCall) Do ¶
func (c *MockPayloadAPIClientUntrackCall) Do(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientUntrackCall
Do rewrite *gomock.Call.Do
func (*MockPayloadAPIClientUntrackCall) DoAndReturn ¶
func (c *MockPayloadAPIClientUntrackCall) DoAndReturn(f func(context.Context, ...string) ([]payloads.Result, error)) *MockPayloadAPIClientUntrackCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPayloadAPIClientUntrackCall) Return ¶
func (c *MockPayloadAPIClientUntrackCall) Return(arg0 []payloads.Result, arg1 error) *MockPayloadAPIClientUntrackCall
Return rewrite *gomock.Call.Return