...

Source file src/edge-infra.dev/pkg/sds/etcd/manager/internal/config/mocks/mock_config.go

Documentation: edge-infra.dev/pkg/sds/etcd/manager/internal/config/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/sds/etcd/manager/internal/config (interfaces: Config)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	containerd "edge-infra.dev/pkg/sds/lib/containerd"
    13  	systemd "edge-infra.dev/pkg/sds/lib/dbus/systemd"
    14  	retry "edge-infra.dev/pkg/sds/lib/etcd/client/retry"
    15  	types "edge-infra.dev/pkg/sds/lib/k8s/retryclient/types"
    16  	gomock "github.com/golang/mock/gomock"
    17  	afero "github.com/spf13/afero"
    18  )
    19  
    20  // MockConfig is a mock of Config interface.
    21  type MockConfig struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockConfigMockRecorder
    24  }
    25  
    26  // MockConfigMockRecorder is the mock recorder for MockConfig.
    27  type MockConfigMockRecorder struct {
    28  	mock *MockConfig
    29  }
    30  
    31  // NewMockConfig creates a new mock instance.
    32  func NewMockConfig(ctrl *gomock.Controller) *MockConfig {
    33  	mock := &MockConfig{ctrl: ctrl}
    34  	mock.recorder = &MockConfigMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockConfig) EXPECT() *MockConfigMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // BlockingKubeRetryClient mocks base method.
    44  func (m *MockConfig) BlockingKubeRetryClient() (types.Retrier, error) {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "BlockingKubeRetryClient")
    47  	ret0, _ := ret[0].(types.Retrier)
    48  	ret1, _ := ret[1].(error)
    49  	return ret0, ret1
    50  }
    51  
    52  // BlockingKubeRetryClient indicates an expected call of BlockingKubeRetryClient.
    53  func (mr *MockConfigMockRecorder) BlockingKubeRetryClient() *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockingKubeRetryClient", reflect.TypeOf((*MockConfig)(nil).BlockingKubeRetryClient))
    56  }
    57  
    58  // ContainerdClient mocks base method.
    59  func (m *MockConfig) ContainerdClient() (containerd.Client, error) {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "ContainerdClient")
    62  	ret0, _ := ret[0].(containerd.Client)
    63  	ret1, _ := ret[1].(error)
    64  	return ret0, ret1
    65  }
    66  
    67  // ContainerdClient indicates an expected call of ContainerdClient.
    68  func (mr *MockConfigMockRecorder) ContainerdClient() *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerdClient", reflect.TypeOf((*MockConfig)(nil).ContainerdClient))
    71  }
    72  
    73  // Endpoint mocks base method.
    74  func (m *MockConfig) Endpoint() string {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "Endpoint")
    77  	ret0, _ := ret[0].(string)
    78  	return ret0
    79  }
    80  
    81  // Endpoint indicates an expected call of Endpoint.
    82  func (mr *MockConfigMockRecorder) Endpoint() *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoint", reflect.TypeOf((*MockConfig)(nil).Endpoint))
    85  }
    86  
    87  // EtcdRetryClient mocks base method.
    88  func (m *MockConfig) EtcdRetryClient() (retry.Retrier, error) {
    89  	m.ctrl.T.Helper()
    90  	ret := m.ctrl.Call(m, "EtcdRetryClient")
    91  	ret0, _ := ret[0].(retry.Retrier)
    92  	ret1, _ := ret[1].(error)
    93  	return ret0, ret1
    94  }
    95  
    96  // EtcdRetryClient indicates an expected call of EtcdRetryClient.
    97  func (mr *MockConfigMockRecorder) EtcdRetryClient() *gomock.Call {
    98  	mr.mock.ctrl.T.Helper()
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EtcdRetryClient", reflect.TypeOf((*MockConfig)(nil).EtcdRetryClient))
   100  }
   101  
   102  // Fs mocks base method.
   103  func (m *MockConfig) Fs() afero.Fs {
   104  	m.ctrl.T.Helper()
   105  	ret := m.ctrl.Call(m, "Fs")
   106  	ret0, _ := ret[0].(afero.Fs)
   107  	return ret0
   108  }
   109  
   110  // Fs indicates an expected call of Fs.
   111  func (mr *MockConfigMockRecorder) Fs() *gomock.Call {
   112  	mr.mock.ctrl.T.Helper()
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fs", reflect.TypeOf((*MockConfig)(nil).Fs))
   114  }
   115  
   116  // KubeRetryClient mocks base method.
   117  func (m *MockConfig) KubeRetryClient() (types.Retrier, error) {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "KubeRetryClient")
   120  	ret0, _ := ret[0].(types.Retrier)
   121  	ret1, _ := ret[1].(error)
   122  	return ret0, ret1
   123  }
   124  
   125  // KubeRetryClient indicates an expected call of KubeRetryClient.
   126  func (mr *MockConfigMockRecorder) KubeRetryClient() *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KubeRetryClient", reflect.TypeOf((*MockConfig)(nil).KubeRetryClient))
   129  }
   130  
   131  // LogLevel mocks base method.
   132  func (m *MockConfig) LogLevel() int {
   133  	m.ctrl.T.Helper()
   134  	ret := m.ctrl.Call(m, "LogLevel")
   135  	ret0, _ := ret[0].(int)
   136  	return ret0
   137  }
   138  
   139  // LogLevel indicates an expected call of LogLevel.
   140  func (mr *MockConfigMockRecorder) LogLevel() *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogLevel", reflect.TypeOf((*MockConfig)(nil).LogLevel))
   143  }
   144  
   145  // MaxUnhealthy mocks base method.
   146  func (m *MockConfig) MaxUnhealthy() time.Duration {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "MaxUnhealthy")
   149  	ret0, _ := ret[0].(time.Duration)
   150  	return ret0
   151  }
   152  
   153  // MaxUnhealthy indicates an expected call of MaxUnhealthy.
   154  func (mr *MockConfigMockRecorder) MaxUnhealthy() *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxUnhealthy", reflect.TypeOf((*MockConfig)(nil).MaxUnhealthy))
   157  }
   158  
   159  // SystemdConnection mocks base method.
   160  func (m *MockConfig) SystemdConnection(arg0 context.Context) (systemd.Connection, error) {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "SystemdConnection", arg0)
   163  	ret0, _ := ret[0].(systemd.Connection)
   164  	ret1, _ := ret[1].(error)
   165  	return ret0, ret1
   166  }
   167  
   168  // SystemdConnection indicates an expected call of SystemdConnection.
   169  func (mr *MockConfigMockRecorder) SystemdConnection(arg0 interface{}) *gomock.Call {
   170  	mr.mock.ctrl.T.Helper()
   171  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SystemdConnection", reflect.TypeOf((*MockConfig)(nil).SystemdConnection), arg0)
   172  }
   173  

View as plain text