github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/api/base/mocks/clientfacade_mock.go (about)

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