github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/facades/controller/firewaller/mocks/firewaller_mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/apiserver/facades/controller/firewaller (interfaces: State,ControllerConfigAPI)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/firewaller_mocks.go github.com/juju/juju/apiserver/facades/controller/firewaller State,ControllerConfigAPI
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  	time "time"
    15  
    16  	firewall "github.com/juju/juju/apiserver/common/firewall"
    17  	controller "github.com/juju/juju/controller"
    18  	network "github.com/juju/juju/core/network"
    19  	config "github.com/juju/juju/environs/config"
    20  	params "github.com/juju/juju/rpc/params"
    21  	state "github.com/juju/juju/state"
    22  	names "github.com/juju/names/v5"
    23  	gomock "go.uber.org/mock/gomock"
    24  	macaroon "gopkg.in/macaroon.v2"
    25  )
    26  
    27  // MockState is a mock of State interface.
    28  type MockState struct {
    29  	ctrl     *gomock.Controller
    30  	recorder *MockStateMockRecorder
    31  }
    32  
    33  // MockStateMockRecorder is the mock recorder for MockState.
    34  type MockStateMockRecorder struct {
    35  	mock *MockState
    36  }
    37  
    38  // NewMockState creates a new mock instance.
    39  func NewMockState(ctrl *gomock.Controller) *MockState {
    40  	mock := &MockState{ctrl: ctrl}
    41  	mock.recorder = &MockStateMockRecorder{mock}
    42  	return mock
    43  }
    44  
    45  // EXPECT returns an object that allows the caller to indicate expected use.
    46  func (m *MockState) EXPECT() *MockStateMockRecorder {
    47  	return m.recorder
    48  }
    49  
    50  // AllEndpointBindings mocks base method.
    51  func (m *MockState) AllEndpointBindings() (map[string]map[string]string, error) {
    52  	m.ctrl.T.Helper()
    53  	ret := m.ctrl.Call(m, "AllEndpointBindings")
    54  	ret0, _ := ret[0].(map[string]map[string]string)
    55  	ret1, _ := ret[1].(error)
    56  	return ret0, ret1
    57  }
    58  
    59  // AllEndpointBindings indicates an expected call of AllEndpointBindings.
    60  func (mr *MockStateMockRecorder) AllEndpointBindings() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllEndpointBindings", reflect.TypeOf((*MockState)(nil).AllEndpointBindings))
    63  }
    64  
    65  // Application mocks base method.
    66  func (m *MockState) Application(arg0 string) (firewall.Application, error) {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "Application", arg0)
    69  	ret0, _ := ret[0].(firewall.Application)
    70  	ret1, _ := ret[1].(error)
    71  	return ret0, ret1
    72  }
    73  
    74  // Application indicates an expected call of Application.
    75  func (mr *MockStateMockRecorder) Application(arg0 any) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockState)(nil).Application), arg0)
    78  }
    79  
    80  // ControllerConfig mocks base method.
    81  func (m *MockState) ControllerConfig() (controller.Config, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "ControllerConfig")
    84  	ret0, _ := ret[0].(controller.Config)
    85  	ret1, _ := ret[1].(error)
    86  	return ret0, ret1
    87  }
    88  
    89  // ControllerConfig indicates an expected call of ControllerConfig.
    90  func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerConfig", reflect.TypeOf((*MockState)(nil).ControllerConfig))
    93  }
    94  
    95  // FindEntity mocks base method.
    96  func (m *MockState) FindEntity(arg0 names.Tag) (state.Entity, error) {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "FindEntity", arg0)
    99  	ret0, _ := ret[0].(state.Entity)
   100  	ret1, _ := ret[1].(error)
   101  	return ret0, ret1
   102  }
   103  
   104  // FindEntity indicates an expected call of FindEntity.
   105  func (mr *MockStateMockRecorder) FindEntity(arg0 any) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindEntity", reflect.TypeOf((*MockState)(nil).FindEntity), arg0)
   108  }
   109  
   110  // GetMacaroon mocks base method.
   111  func (m *MockState) GetMacaroon(arg0 names.Tag) (*macaroon.Macaroon, error) {
   112  	m.ctrl.T.Helper()
   113  	ret := m.ctrl.Call(m, "GetMacaroon", arg0)
   114  	ret0, _ := ret[0].(*macaroon.Macaroon)
   115  	ret1, _ := ret[1].(error)
   116  	return ret0, ret1
   117  }
   118  
   119  // GetMacaroon indicates an expected call of GetMacaroon.
   120  func (mr *MockStateMockRecorder) GetMacaroon(arg0 any) *gomock.Call {
   121  	mr.mock.ctrl.T.Helper()
   122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMacaroon", reflect.TypeOf((*MockState)(nil).GetMacaroon), arg0)
   123  }
   124  
   125  // IsController mocks base method.
   126  func (m *MockState) IsController() bool {
   127  	m.ctrl.T.Helper()
   128  	ret := m.ctrl.Call(m, "IsController")
   129  	ret0, _ := ret[0].(bool)
   130  	return ret0
   131  }
   132  
   133  // IsController indicates an expected call of IsController.
   134  func (mr *MockStateMockRecorder) IsController() *gomock.Call {
   135  	mr.mock.ctrl.T.Helper()
   136  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsController", reflect.TypeOf((*MockState)(nil).IsController))
   137  }
   138  
   139  // KeyRelation mocks base method.
   140  func (m *MockState) KeyRelation(arg0 string) (firewall.Relation, error) {
   141  	m.ctrl.T.Helper()
   142  	ret := m.ctrl.Call(m, "KeyRelation", arg0)
   143  	ret0, _ := ret[0].(firewall.Relation)
   144  	ret1, _ := ret[1].(error)
   145  	return ret0, ret1
   146  }
   147  
   148  // KeyRelation indicates an expected call of KeyRelation.
   149  func (mr *MockStateMockRecorder) KeyRelation(arg0 any) *gomock.Call {
   150  	mr.mock.ctrl.T.Helper()
   151  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyRelation", reflect.TypeOf((*MockState)(nil).KeyRelation), arg0)
   152  }
   153  
   154  // Machine mocks base method.
   155  func (m *MockState) Machine(arg0 string) (firewall.Machine, error) {
   156  	m.ctrl.T.Helper()
   157  	ret := m.ctrl.Call(m, "Machine", arg0)
   158  	ret0, _ := ret[0].(firewall.Machine)
   159  	ret1, _ := ret[1].(error)
   160  	return ret0, ret1
   161  }
   162  
   163  // Machine indicates an expected call of Machine.
   164  func (mr *MockStateMockRecorder) Machine(arg0 any) *gomock.Call {
   165  	mr.mock.ctrl.T.Helper()
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Machine", reflect.TypeOf((*MockState)(nil).Machine), arg0)
   167  }
   168  
   169  // ModelConfig mocks base method.
   170  func (m *MockState) ModelConfig() (*config.Config, error) {
   171  	m.ctrl.T.Helper()
   172  	ret := m.ctrl.Call(m, "ModelConfig")
   173  	ret0, _ := ret[0].(*config.Config)
   174  	ret1, _ := ret[1].(error)
   175  	return ret0, ret1
   176  }
   177  
   178  // ModelConfig indicates an expected call of ModelConfig.
   179  func (mr *MockStateMockRecorder) ModelConfig() *gomock.Call {
   180  	mr.mock.ctrl.T.Helper()
   181  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelConfig", reflect.TypeOf((*MockState)(nil).ModelConfig))
   182  }
   183  
   184  // ModelUUID mocks base method.
   185  func (m *MockState) ModelUUID() string {
   186  	m.ctrl.T.Helper()
   187  	ret := m.ctrl.Call(m, "ModelUUID")
   188  	ret0, _ := ret[0].(string)
   189  	return ret0
   190  }
   191  
   192  // ModelUUID indicates an expected call of ModelUUID.
   193  func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call {
   194  	mr.mock.ctrl.T.Helper()
   195  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelUUID", reflect.TypeOf((*MockState)(nil).ModelUUID))
   196  }
   197  
   198  // SpaceInfos mocks base method.
   199  func (m *MockState) SpaceInfos() (network.SpaceInfos, error) {
   200  	m.ctrl.T.Helper()
   201  	ret := m.ctrl.Call(m, "SpaceInfos")
   202  	ret0, _ := ret[0].(network.SpaceInfos)
   203  	ret1, _ := ret[1].(error)
   204  	return ret0, ret1
   205  }
   206  
   207  // SpaceInfos indicates an expected call of SpaceInfos.
   208  func (mr *MockStateMockRecorder) SpaceInfos() *gomock.Call {
   209  	mr.mock.ctrl.T.Helper()
   210  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpaceInfos", reflect.TypeOf((*MockState)(nil).SpaceInfos))
   211  }
   212  
   213  // Unit mocks base method.
   214  func (m *MockState) Unit(arg0 string) (firewall.Unit, error) {
   215  	m.ctrl.T.Helper()
   216  	ret := m.ctrl.Call(m, "Unit", arg0)
   217  	ret0, _ := ret[0].(firewall.Unit)
   218  	ret1, _ := ret[1].(error)
   219  	return ret0, ret1
   220  }
   221  
   222  // Unit indicates an expected call of Unit.
   223  func (mr *MockStateMockRecorder) Unit(arg0 any) *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unit", reflect.TypeOf((*MockState)(nil).Unit), arg0)
   226  }
   227  
   228  // WatchForModelConfigChanges mocks base method.
   229  func (m *MockState) WatchForModelConfigChanges() state.NotifyWatcher {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "WatchForModelConfigChanges")
   232  	ret0, _ := ret[0].(state.NotifyWatcher)
   233  	return ret0
   234  }
   235  
   236  // WatchForModelConfigChanges indicates an expected call of WatchForModelConfigChanges.
   237  func (mr *MockStateMockRecorder) WatchForModelConfigChanges() *gomock.Call {
   238  	mr.mock.ctrl.T.Helper()
   239  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchForModelConfigChanges", reflect.TypeOf((*MockState)(nil).WatchForModelConfigChanges))
   240  }
   241  
   242  // WatchModelMachineStartTimes mocks base method.
   243  func (m *MockState) WatchModelMachineStartTimes(arg0 time.Duration) state.StringsWatcher {
   244  	m.ctrl.T.Helper()
   245  	ret := m.ctrl.Call(m, "WatchModelMachineStartTimes", arg0)
   246  	ret0, _ := ret[0].(state.StringsWatcher)
   247  	return ret0
   248  }
   249  
   250  // WatchModelMachineStartTimes indicates an expected call of WatchModelMachineStartTimes.
   251  func (mr *MockStateMockRecorder) WatchModelMachineStartTimes(arg0 any) *gomock.Call {
   252  	mr.mock.ctrl.T.Helper()
   253  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchModelMachineStartTimes", reflect.TypeOf((*MockState)(nil).WatchModelMachineStartTimes), arg0)
   254  }
   255  
   256  // WatchModelMachines mocks base method.
   257  func (m *MockState) WatchModelMachines() state.StringsWatcher {
   258  	m.ctrl.T.Helper()
   259  	ret := m.ctrl.Call(m, "WatchModelMachines")
   260  	ret0, _ := ret[0].(state.StringsWatcher)
   261  	return ret0
   262  }
   263  
   264  // WatchModelMachines indicates an expected call of WatchModelMachines.
   265  func (mr *MockStateMockRecorder) WatchModelMachines() *gomock.Call {
   266  	mr.mock.ctrl.T.Helper()
   267  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchModelMachines", reflect.TypeOf((*MockState)(nil).WatchModelMachines))
   268  }
   269  
   270  // WatchOpenedPorts mocks base method.
   271  func (m *MockState) WatchOpenedPorts() state.StringsWatcher {
   272  	m.ctrl.T.Helper()
   273  	ret := m.ctrl.Call(m, "WatchOpenedPorts")
   274  	ret0, _ := ret[0].(state.StringsWatcher)
   275  	return ret0
   276  }
   277  
   278  // WatchOpenedPorts indicates an expected call of WatchOpenedPorts.
   279  func (mr *MockStateMockRecorder) WatchOpenedPorts() *gomock.Call {
   280  	mr.mock.ctrl.T.Helper()
   281  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchOpenedPorts", reflect.TypeOf((*MockState)(nil).WatchOpenedPorts))
   282  }
   283  
   284  // WatchSubnets mocks base method.
   285  func (m *MockState) WatchSubnets(arg0 func(any) bool) state.StringsWatcher {
   286  	m.ctrl.T.Helper()
   287  	ret := m.ctrl.Call(m, "WatchSubnets", arg0)
   288  	ret0, _ := ret[0].(state.StringsWatcher)
   289  	return ret0
   290  }
   291  
   292  // WatchSubnets indicates an expected call of WatchSubnets.
   293  func (mr *MockStateMockRecorder) WatchSubnets(arg0 any) *gomock.Call {
   294  	mr.mock.ctrl.T.Helper()
   295  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchSubnets", reflect.TypeOf((*MockState)(nil).WatchSubnets), arg0)
   296  }
   297  
   298  // MockControllerConfigAPI is a mock of ControllerConfigAPI interface.
   299  type MockControllerConfigAPI struct {
   300  	ctrl     *gomock.Controller
   301  	recorder *MockControllerConfigAPIMockRecorder
   302  }
   303  
   304  // MockControllerConfigAPIMockRecorder is the mock recorder for MockControllerConfigAPI.
   305  type MockControllerConfigAPIMockRecorder struct {
   306  	mock *MockControllerConfigAPI
   307  }
   308  
   309  // NewMockControllerConfigAPI creates a new mock instance.
   310  func NewMockControllerConfigAPI(ctrl *gomock.Controller) *MockControllerConfigAPI {
   311  	mock := &MockControllerConfigAPI{ctrl: ctrl}
   312  	mock.recorder = &MockControllerConfigAPIMockRecorder{mock}
   313  	return mock
   314  }
   315  
   316  // EXPECT returns an object that allows the caller to indicate expected use.
   317  func (m *MockControllerConfigAPI) EXPECT() *MockControllerConfigAPIMockRecorder {
   318  	return m.recorder
   319  }
   320  
   321  // ControllerAPIInfoForModels mocks base method.
   322  func (m *MockControllerConfigAPI) ControllerAPIInfoForModels(arg0 params.Entities) (params.ControllerAPIInfoResults, error) {
   323  	m.ctrl.T.Helper()
   324  	ret := m.ctrl.Call(m, "ControllerAPIInfoForModels", arg0)
   325  	ret0, _ := ret[0].(params.ControllerAPIInfoResults)
   326  	ret1, _ := ret[1].(error)
   327  	return ret0, ret1
   328  }
   329  
   330  // ControllerAPIInfoForModels indicates an expected call of ControllerAPIInfoForModels.
   331  func (mr *MockControllerConfigAPIMockRecorder) ControllerAPIInfoForModels(arg0 any) *gomock.Call {
   332  	mr.mock.ctrl.T.Helper()
   333  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerAPIInfoForModels", reflect.TypeOf((*MockControllerConfigAPI)(nil).ControllerAPIInfoForModels), arg0)
   334  }
   335  
   336  // ControllerConfig mocks base method.
   337  func (m *MockControllerConfigAPI) ControllerConfig() (params.ControllerConfigResult, error) {
   338  	m.ctrl.T.Helper()
   339  	ret := m.ctrl.Call(m, "ControllerConfig")
   340  	ret0, _ := ret[0].(params.ControllerConfigResult)
   341  	ret1, _ := ret[1].(error)
   342  	return ret0, ret1
   343  }
   344  
   345  // ControllerConfig indicates an expected call of ControllerConfig.
   346  func (mr *MockControllerConfigAPIMockRecorder) ControllerConfig() *gomock.Call {
   347  	mr.mock.ctrl.T.Helper()
   348  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerConfig", reflect.TypeOf((*MockControllerConfigAPI)(nil).ControllerConfig))
   349  }