// Code generated by MockGen. DO NOT EDIT. // Source: edge-infra.dev/pkg/sds/etcd/manager/internal/config (interfaces: Config) // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" time "time" containerd "edge-infra.dev/pkg/sds/lib/containerd" systemd "edge-infra.dev/pkg/sds/lib/dbus/systemd" retry "edge-infra.dev/pkg/sds/lib/etcd/client/retry" types "edge-infra.dev/pkg/sds/lib/k8s/retryclient/types" gomock "github.com/golang/mock/gomock" afero "github.com/spf13/afero" ) // MockConfig is a mock of Config interface. type MockConfig struct { ctrl *gomock.Controller recorder *MockConfigMockRecorder } // MockConfigMockRecorder is the mock recorder for MockConfig. type MockConfigMockRecorder struct { mock *MockConfig } // NewMockConfig creates a new mock instance. func NewMockConfig(ctrl *gomock.Controller) *MockConfig { mock := &MockConfig{ctrl: ctrl} mock.recorder = &MockConfigMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockConfig) EXPECT() *MockConfigMockRecorder { return m.recorder } // BlockingKubeRetryClient mocks base method. func (m *MockConfig) BlockingKubeRetryClient() (types.Retrier, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "BlockingKubeRetryClient") ret0, _ := ret[0].(types.Retrier) ret1, _ := ret[1].(error) return ret0, ret1 } // BlockingKubeRetryClient indicates an expected call of BlockingKubeRetryClient. func (mr *MockConfigMockRecorder) BlockingKubeRetryClient() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockingKubeRetryClient", reflect.TypeOf((*MockConfig)(nil).BlockingKubeRetryClient)) } // ContainerdClient mocks base method. func (m *MockConfig) ContainerdClient() (containerd.Client, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ContainerdClient") ret0, _ := ret[0].(containerd.Client) ret1, _ := ret[1].(error) return ret0, ret1 } // ContainerdClient indicates an expected call of ContainerdClient. func (mr *MockConfigMockRecorder) ContainerdClient() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerdClient", reflect.TypeOf((*MockConfig)(nil).ContainerdClient)) } // Endpoint mocks base method. func (m *MockConfig) Endpoint() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Endpoint") ret0, _ := ret[0].(string) return ret0 } // Endpoint indicates an expected call of Endpoint. func (mr *MockConfigMockRecorder) Endpoint() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoint", reflect.TypeOf((*MockConfig)(nil).Endpoint)) } // EtcdRetryClient mocks base method. func (m *MockConfig) EtcdRetryClient() (retry.Retrier, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EtcdRetryClient") ret0, _ := ret[0].(retry.Retrier) ret1, _ := ret[1].(error) return ret0, ret1 } // EtcdRetryClient indicates an expected call of EtcdRetryClient. func (mr *MockConfigMockRecorder) EtcdRetryClient() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EtcdRetryClient", reflect.TypeOf((*MockConfig)(nil).EtcdRetryClient)) } // Fs mocks base method. func (m *MockConfig) Fs() afero.Fs { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Fs") ret0, _ := ret[0].(afero.Fs) return ret0 } // Fs indicates an expected call of Fs. func (mr *MockConfigMockRecorder) Fs() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fs", reflect.TypeOf((*MockConfig)(nil).Fs)) } // KubeRetryClient mocks base method. func (m *MockConfig) KubeRetryClient() (types.Retrier, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "KubeRetryClient") ret0, _ := ret[0].(types.Retrier) ret1, _ := ret[1].(error) return ret0, ret1 } // KubeRetryClient indicates an expected call of KubeRetryClient. func (mr *MockConfigMockRecorder) KubeRetryClient() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KubeRetryClient", reflect.TypeOf((*MockConfig)(nil).KubeRetryClient)) } // LogLevel mocks base method. func (m *MockConfig) LogLevel() int { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LogLevel") ret0, _ := ret[0].(int) return ret0 } // LogLevel indicates an expected call of LogLevel. func (mr *MockConfigMockRecorder) LogLevel() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogLevel", reflect.TypeOf((*MockConfig)(nil).LogLevel)) } // MaxUnhealthy mocks base method. func (m *MockConfig) MaxUnhealthy() time.Duration { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "MaxUnhealthy") ret0, _ := ret[0].(time.Duration) return ret0 } // MaxUnhealthy indicates an expected call of MaxUnhealthy. func (mr *MockConfigMockRecorder) MaxUnhealthy() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxUnhealthy", reflect.TypeOf((*MockConfig)(nil).MaxUnhealthy)) } // SystemdConnection mocks base method. func (m *MockConfig) SystemdConnection(arg0 context.Context) (systemd.Connection, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SystemdConnection", arg0) ret0, _ := ret[0].(systemd.Connection) ret1, _ := ret[1].(error) return ret0, ret1 } // SystemdConnection indicates an expected call of SystemdConnection. func (mr *MockConfigMockRecorder) SystemdConnection(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SystemdConnection", reflect.TypeOf((*MockConfig)(nil).SystemdConnection), arg0) }