github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/containerbroker/mocks/base_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/api/base (interfaces: APICaller)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/base_mock.go github.com/juju/juju/api/base APICaller
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	context "context"
    14  	http "net/http"
    15  	url "net/url"
    16  	reflect "reflect"
    17  
    18  	base "github.com/juju/juju/api/base"
    19  	names "github.com/juju/names/v5"
    20  	gomock "go.uber.org/mock/gomock"
    21  	httprequest "gopkg.in/httprequest.v1"
    22  )
    23  
    24  // MockAPICaller is a mock of APICaller interface.
    25  type MockAPICaller struct {
    26  	ctrl     *gomock.Controller
    27  	recorder *MockAPICallerMockRecorder
    28  }
    29  
    30  // MockAPICallerMockRecorder is the mock recorder for MockAPICaller.
    31  type MockAPICallerMockRecorder struct {
    32  	mock *MockAPICaller
    33  }
    34  
    35  // NewMockAPICaller creates a new mock instance.
    36  func NewMockAPICaller(ctrl *gomock.Controller) *MockAPICaller {
    37  	mock := &MockAPICaller{ctrl: ctrl}
    38  	mock.recorder = &MockAPICallerMockRecorder{mock}
    39  	return mock
    40  }
    41  
    42  // EXPECT returns an object that allows the caller to indicate expected use.
    43  func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder {
    44  	return m.recorder
    45  }
    46  
    47  // APICall mocks base method.
    48  func (m *MockAPICaller) APICall(arg0 string, arg1 int, arg2, arg3 string, arg4, arg5 any) error {
    49  	m.ctrl.T.Helper()
    50  	ret := m.ctrl.Call(m, "APICall", arg0, arg1, arg2, arg3, arg4, arg5)
    51  	ret0, _ := ret[0].(error)
    52  	return ret0
    53  }
    54  
    55  // APICall indicates an expected call of APICall.
    56  func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call {
    57  	mr.mock.ctrl.T.Helper()
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APICall", reflect.TypeOf((*MockAPICaller)(nil).APICall), arg0, arg1, arg2, arg3, arg4, arg5)
    59  }
    60  
    61  // BakeryClient mocks base method.
    62  func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "BakeryClient")
    65  	ret0, _ := ret[0].(base.MacaroonDischarger)
    66  	return ret0
    67  }
    68  
    69  // BakeryClient indicates an expected call of BakeryClient.
    70  func (mr *MockAPICallerMockRecorder) BakeryClient() *gomock.Call {
    71  	mr.mock.ctrl.T.Helper()
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BakeryClient", reflect.TypeOf((*MockAPICaller)(nil).BakeryClient))
    73  }
    74  
    75  // BestFacadeVersion mocks base method.
    76  func (m *MockAPICaller) BestFacadeVersion(arg0 string) int {
    77  	m.ctrl.T.Helper()
    78  	ret := m.ctrl.Call(m, "BestFacadeVersion", arg0)
    79  	ret0, _ := ret[0].(int)
    80  	return ret0
    81  }
    82  
    83  // BestFacadeVersion indicates an expected call of BestFacadeVersion.
    84  func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 any) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BestFacadeVersion", reflect.TypeOf((*MockAPICaller)(nil).BestFacadeVersion), arg0)
    87  }
    88  
    89  // ConnectControllerStream mocks base method.
    90  func (m *MockAPICaller) ConnectControllerStream(arg0 string, arg1 url.Values, arg2 http.Header) (base.Stream, error) {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "ConnectControllerStream", arg0, arg1, arg2)
    93  	ret0, _ := ret[0].(base.Stream)
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // ConnectControllerStream indicates an expected call of ConnectControllerStream.
    99  func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2 any) *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectControllerStream", reflect.TypeOf((*MockAPICaller)(nil).ConnectControllerStream), arg0, arg1, arg2)
   102  }
   103  
   104  // ConnectStream mocks base method.
   105  func (m *MockAPICaller) ConnectStream(arg0 string, arg1 url.Values) (base.Stream, error) {
   106  	m.ctrl.T.Helper()
   107  	ret := m.ctrl.Call(m, "ConnectStream", arg0, arg1)
   108  	ret0, _ := ret[0].(base.Stream)
   109  	ret1, _ := ret[1].(error)
   110  	return ret0, ret1
   111  }
   112  
   113  // ConnectStream indicates an expected call of ConnectStream.
   114  func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1 any) *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectStream", reflect.TypeOf((*MockAPICaller)(nil).ConnectStream), arg0, arg1)
   117  }
   118  
   119  // Context mocks base method.
   120  func (m *MockAPICaller) Context() context.Context {
   121  	m.ctrl.T.Helper()
   122  	ret := m.ctrl.Call(m, "Context")
   123  	ret0, _ := ret[0].(context.Context)
   124  	return ret0
   125  }
   126  
   127  // Context indicates an expected call of Context.
   128  func (mr *MockAPICallerMockRecorder) Context() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockAPICaller)(nil).Context))
   131  }
   132  
   133  // HTTPClient mocks base method.
   134  func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error) {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "HTTPClient")
   137  	ret0, _ := ret[0].(*httprequest.Client)
   138  	ret1, _ := ret[1].(error)
   139  	return ret0, ret1
   140  }
   141  
   142  // HTTPClient indicates an expected call of HTTPClient.
   143  func (mr *MockAPICallerMockRecorder) HTTPClient() *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockAPICaller)(nil).HTTPClient))
   146  }
   147  
   148  // ModelTag mocks base method.
   149  func (m *MockAPICaller) ModelTag() (names.ModelTag, bool) {
   150  	m.ctrl.T.Helper()
   151  	ret := m.ctrl.Call(m, "ModelTag")
   152  	ret0, _ := ret[0].(names.ModelTag)
   153  	ret1, _ := ret[1].(bool)
   154  	return ret0, ret1
   155  }
   156  
   157  // ModelTag indicates an expected call of ModelTag.
   158  func (mr *MockAPICallerMockRecorder) ModelTag() *gomock.Call {
   159  	mr.mock.ctrl.T.Helper()
   160  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelTag", reflect.TypeOf((*MockAPICaller)(nil).ModelTag))
   161  }
   162  
   163  // RootHTTPClient mocks base method.
   164  func (m *MockAPICaller) RootHTTPClient() (*httprequest.Client, error) {
   165  	m.ctrl.T.Helper()
   166  	ret := m.ctrl.Call(m, "RootHTTPClient")
   167  	ret0, _ := ret[0].(*httprequest.Client)
   168  	ret1, _ := ret[1].(error)
   169  	return ret0, ret1
   170  }
   171  
   172  // RootHTTPClient indicates an expected call of RootHTTPClient.
   173  func (mr *MockAPICallerMockRecorder) RootHTTPClient() *gomock.Call {
   174  	mr.mock.ctrl.T.Helper()
   175  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RootHTTPClient", reflect.TypeOf((*MockAPICaller)(nil).RootHTTPClient))
   176  }