mirror of
https://github.com/rancher/steve.git
synced 2025-04-28 11:14:43 +00:00
233 lines
9.3 KiB
Go
233 lines
9.3 KiB
Go
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: k8s.io/client-go/dynamic (interfaces: ResourceInterface)
|
||
|
|
||
|
// Package sqlproxy is a generated GoMock package.
|
||
|
package sqlproxy
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
reflect "reflect"
|
||
|
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||
|
unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||
|
types "k8s.io/apimachinery/pkg/types"
|
||
|
watch "k8s.io/apimachinery/pkg/watch"
|
||
|
)
|
||
|
|
||
|
// MockResourceInterface is a mock of ResourceInterface interface.
|
||
|
type MockResourceInterface struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockResourceInterfaceMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockResourceInterfaceMockRecorder is the mock recorder for MockResourceInterface.
|
||
|
type MockResourceInterfaceMockRecorder struct {
|
||
|
mock *MockResourceInterface
|
||
|
}
|
||
|
|
||
|
// NewMockResourceInterface creates a new mock instance.
|
||
|
func NewMockResourceInterface(ctrl *gomock.Controller) *MockResourceInterface {
|
||
|
mock := &MockResourceInterface{ctrl: ctrl}
|
||
|
mock.recorder = &MockResourceInterfaceMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
||
|
func (m *MockResourceInterface) EXPECT() *MockResourceInterfaceMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Apply mocks base method.
|
||
|
func (m *MockResourceInterface) Apply(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions, arg4 ...string) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
||
|
for _, a := range arg4 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Apply", varargs...)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Apply indicates an expected call of Apply.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Apply(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockResourceInterface)(nil).Apply), varargs...)
|
||
|
}
|
||
|
|
||
|
// ApplyStatus mocks base method.
|
||
|
func (m *MockResourceInterface) ApplyStatus(arg0 context.Context, arg1 string, arg2 *unstructured.Unstructured, arg3 v1.ApplyOptions) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2, arg3)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// ApplyStatus indicates an expected call of ApplyStatus.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockResourceInterface)(nil).ApplyStatus), arg0, arg1, arg2, arg3)
|
||
|
}
|
||
|
|
||
|
// Create mocks base method.
|
||
|
func (m *MockResourceInterface) Create(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.CreateOptions, arg3 ...string) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2}
|
||
|
for _, a := range arg3 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Create", varargs...)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Create indicates an expected call of Create.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockResourceInterface)(nil).Create), varargs...)
|
||
|
}
|
||
|
|
||
|
// Delete mocks base method.
|
||
|
func (m *MockResourceInterface) Delete(arg0 context.Context, arg1 string, arg2 v1.DeleteOptions, arg3 ...string) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2}
|
||
|
for _, a := range arg3 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Delete", varargs...)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Delete indicates an expected call of Delete.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockResourceInterface)(nil).Delete), varargs...)
|
||
|
}
|
||
|
|
||
|
// DeleteCollection mocks base method.
|
||
|
func (m *MockResourceInterface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// DeleteCollection indicates an expected call of DeleteCollection.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockResourceInterface)(nil).DeleteCollection), arg0, arg1, arg2)
|
||
|
}
|
||
|
|
||
|
// Get mocks base method.
|
||
|
func (m *MockResourceInterface) Get(arg0 context.Context, arg1 string, arg2 v1.GetOptions, arg3 ...string) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2}
|
||
|
for _, a := range arg3 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Get", varargs...)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Get indicates an expected call of Get.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockResourceInterface)(nil).Get), varargs...)
|
||
|
}
|
||
|
|
||
|
// List mocks base method.
|
||
|
func (m *MockResourceInterface) List(arg0 context.Context, arg1 v1.ListOptions) (*unstructured.UnstructuredList, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "List", arg0, arg1)
|
||
|
ret0, _ := ret[0].(*unstructured.UnstructuredList)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// List indicates an expected call of List.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockResourceInterface)(nil).List), arg0, arg1)
|
||
|
}
|
||
|
|
||
|
// Patch mocks base method.
|
||
|
func (m *MockResourceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2, arg3, arg4}
|
||
|
for _, a := range arg5 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Patch", varargs...)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Patch indicates an expected call of Patch.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockResourceInterface)(nil).Patch), varargs...)
|
||
|
}
|
||
|
|
||
|
// Update mocks base method.
|
||
|
func (m *MockResourceInterface) Update(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions, arg3 ...string) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
varargs := []interface{}{arg0, arg1, arg2}
|
||
|
for _, a := range arg3 {
|
||
|
varargs = append(varargs, a)
|
||
|
}
|
||
|
ret := m.ctrl.Call(m, "Update", varargs...)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Update indicates an expected call of Update.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockResourceInterface)(nil).Update), varargs...)
|
||
|
}
|
||
|
|
||
|
// UpdateStatus mocks base method.
|
||
|
func (m *MockResourceInterface) UpdateStatus(arg0 context.Context, arg1 *unstructured.Unstructured, arg2 v1.UpdateOptions) (*unstructured.Unstructured, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2)
|
||
|
ret0, _ := ret[0].(*unstructured.Unstructured)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// UpdateStatus indicates an expected call of UpdateStatus.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockResourceInterface)(nil).UpdateStatus), arg0, arg1, arg2)
|
||
|
}
|
||
|
|
||
|
// Watch mocks base method.
|
||
|
func (m *MockResourceInterface) Watch(arg0 context.Context, arg1 v1.ListOptions) (watch.Interface, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Watch", arg0, arg1)
|
||
|
ret0, _ := ret[0].(watch.Interface)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Watch indicates an expected call of Watch.
|
||
|
func (mr *MockResourceInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockResourceInterface)(nil).Watch), arg0, arg1)
|
||
|
}
|