mirror of
https://github.com/rancher/steve.git
synced 2025-08-28 19:11:32 +00:00
132 lines
4.4 KiB
Go
132 lines
4.4 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./pkg/ext/store.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./pkg/ext/store.go -destination=./pkg/ext/store_mock.go -package=ext
|
|
//
|
|
|
|
// Package ext is a generated GoMock package.
|
|
package ext
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// MockStore is a mock of Store interface.
|
|
type MockStore[T runtime.Object, TList runtime.Object] struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockStoreMockRecorder[T, TList]
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore.
|
|
type MockStoreMockRecorder[T runtime.Object, TList runtime.Object] struct {
|
|
mock *MockStore[T, TList]
|
|
}
|
|
|
|
// NewMockStore creates a new mock instance.
|
|
func NewMockStore[T runtime.Object, TList runtime.Object](ctrl *gomock.Controller) *MockStore[T, TList] {
|
|
mock := &MockStore[T, TList]{ctrl: ctrl}
|
|
mock.recorder = &MockStoreMockRecorder[T, TList]{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockStore[T, TList]) EXPECT() *MockStoreMockRecorder[T, TList] {
|
|
return m.recorder
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockStore[T, TList]) Create(ctx Context, obj T, opts *v1.CreateOptions) (T, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", ctx, obj, opts)
|
|
ret0, _ := ret[0].(T)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockStoreMockRecorder[T, TList]) Create(ctx, obj, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStore[T, TList])(nil).Create), ctx, obj, opts)
|
|
}
|
|
|
|
// Delete mocks base method.
|
|
func (m *MockStore[T, TList]) Delete(ctx Context, name string, opts *v1.DeleteOptions) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Delete", ctx, name, opts)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Delete indicates an expected call of Delete.
|
|
func (mr *MockStoreMockRecorder[T, TList]) Delete(ctx, name, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStore[T, TList])(nil).Delete), ctx, name, opts)
|
|
}
|
|
|
|
// Get mocks base method.
|
|
func (m *MockStore[T, TList]) Get(ctx Context, name string, opts *v1.GetOptions) (T, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Get", ctx, name, opts)
|
|
ret0, _ := ret[0].(T)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Get indicates an expected call of Get.
|
|
func (mr *MockStoreMockRecorder[T, TList]) Get(ctx, name, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStore[T, TList])(nil).Get), ctx, name, opts)
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockStore[T, TList]) List(ctx Context, opts *v1.ListOptions) (TList, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", ctx, opts)
|
|
ret0, _ := ret[0].(TList)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockStoreMockRecorder[T, TList]) List(ctx, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStore[T, TList])(nil).List), ctx, opts)
|
|
}
|
|
|
|
// Update mocks base method.
|
|
func (m *MockStore[T, TList]) Update(ctx Context, obj T, opts *v1.UpdateOptions) (T, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Update", ctx, obj, opts)
|
|
ret0, _ := ret[0].(T)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Update indicates an expected call of Update.
|
|
func (mr *MockStoreMockRecorder[T, TList]) Update(ctx, obj, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStore[T, TList])(nil).Update), ctx, obj, opts)
|
|
}
|
|
|
|
// Watch mocks base method.
|
|
func (m *MockStore[T, TList]) Watch(ctx Context, opts *v1.ListOptions) (<-chan WatchEvent[T], error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Watch", ctx, opts)
|
|
ret0, _ := ret[0].(<-chan WatchEvent[T])
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Watch indicates an expected call of Watch.
|
|
func (mr *MockStoreMockRecorder[T, TList]) Watch(ctx, opts any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockStore[T, TList])(nil).Watch), ctx, opts)
|
|
}
|