github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facade/mocks/facade_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/apiserver/facade (interfaces: Resources,Authorizer)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	facade "github.com/juju/juju/apiserver/facade"
    10  	permission "github.com/juju/juju/permission"
    11  	names_v2 "gopkg.in/juju/names.v2"
    12  	reflect "reflect"
    13  )
    14  
    15  // MockResources is a mock of Resources interface
    16  type MockResources struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockResourcesMockRecorder
    19  }
    20  
    21  // MockResourcesMockRecorder is the mock recorder for MockResources
    22  type MockResourcesMockRecorder struct {
    23  	mock *MockResources
    24  }
    25  
    26  // NewMockResources creates a new mock instance
    27  func NewMockResources(ctrl *gomock.Controller) *MockResources {
    28  	mock := &MockResources{ctrl: ctrl}
    29  	mock.recorder = &MockResourcesMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *MockResources) EXPECT() *MockResourcesMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Get mocks base method
    39  func (m *MockResources) Get(arg0 string) facade.Resource {
    40  	ret := m.ctrl.Call(m, "Get", arg0)
    41  	ret0, _ := ret[0].(facade.Resource)
    42  	return ret0
    43  }
    44  
    45  // Get indicates an expected call of Get
    46  func (mr *MockResourcesMockRecorder) Get(arg0 interface{}) *gomock.Call {
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockResources)(nil).Get), arg0)
    48  }
    49  
    50  // Register mocks base method
    51  func (m *MockResources) Register(arg0 facade.Resource) string {
    52  	ret := m.ctrl.Call(m, "Register", arg0)
    53  	ret0, _ := ret[0].(string)
    54  	return ret0
    55  }
    56  
    57  // Register indicates an expected call of Register
    58  func (mr *MockResourcesMockRecorder) Register(arg0 interface{}) *gomock.Call {
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockResources)(nil).Register), arg0)
    60  }
    61  
    62  // Stop mocks base method
    63  func (m *MockResources) Stop(arg0 string) error {
    64  	ret := m.ctrl.Call(m, "Stop", arg0)
    65  	ret0, _ := ret[0].(error)
    66  	return ret0
    67  }
    68  
    69  // Stop indicates an expected call of Stop
    70  func (mr *MockResourcesMockRecorder) Stop(arg0 interface{}) *gomock.Call {
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockResources)(nil).Stop), arg0)
    72  }
    73  
    74  // MockAuthorizer is a mock of Authorizer interface
    75  type MockAuthorizer struct {
    76  	ctrl     *gomock.Controller
    77  	recorder *MockAuthorizerMockRecorder
    78  }
    79  
    80  // MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer
    81  type MockAuthorizerMockRecorder struct {
    82  	mock *MockAuthorizer
    83  }
    84  
    85  // NewMockAuthorizer creates a new mock instance
    86  func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer {
    87  	mock := &MockAuthorizer{ctrl: ctrl}
    88  	mock.recorder = &MockAuthorizerMockRecorder{mock}
    89  	return mock
    90  }
    91  
    92  // EXPECT returns an object that allows the caller to indicate expected use
    93  func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder {
    94  	return m.recorder
    95  }
    96  
    97  // AuthApplicationAgent mocks base method
    98  func (m *MockAuthorizer) AuthApplicationAgent() bool {
    99  	ret := m.ctrl.Call(m, "AuthApplicationAgent")
   100  	ret0, _ := ret[0].(bool)
   101  	return ret0
   102  }
   103  
   104  // AuthApplicationAgent indicates an expected call of AuthApplicationAgent
   105  func (mr *MockAuthorizerMockRecorder) AuthApplicationAgent() *gomock.Call {
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthApplicationAgent", reflect.TypeOf((*MockAuthorizer)(nil).AuthApplicationAgent))
   107  }
   108  
   109  // AuthClient mocks base method
   110  func (m *MockAuthorizer) AuthClient() bool {
   111  	ret := m.ctrl.Call(m, "AuthClient")
   112  	ret0, _ := ret[0].(bool)
   113  	return ret0
   114  }
   115  
   116  // AuthClient indicates an expected call of AuthClient
   117  func (mr *MockAuthorizerMockRecorder) AuthClient() *gomock.Call {
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthClient", reflect.TypeOf((*MockAuthorizer)(nil).AuthClient))
   119  }
   120  
   121  // AuthController mocks base method
   122  func (m *MockAuthorizer) AuthController() bool {
   123  	ret := m.ctrl.Call(m, "AuthController")
   124  	ret0, _ := ret[0].(bool)
   125  	return ret0
   126  }
   127  
   128  // AuthController indicates an expected call of AuthController
   129  func (mr *MockAuthorizerMockRecorder) AuthController() *gomock.Call {
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthController", reflect.TypeOf((*MockAuthorizer)(nil).AuthController))
   131  }
   132  
   133  // AuthMachineAgent mocks base method
   134  func (m *MockAuthorizer) AuthMachineAgent() bool {
   135  	ret := m.ctrl.Call(m, "AuthMachineAgent")
   136  	ret0, _ := ret[0].(bool)
   137  	return ret0
   138  }
   139  
   140  // AuthMachineAgent indicates an expected call of AuthMachineAgent
   141  func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *gomock.Call {
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMachineAgent", reflect.TypeOf((*MockAuthorizer)(nil).AuthMachineAgent))
   143  }
   144  
   145  // AuthOwner mocks base method
   146  func (m *MockAuthorizer) AuthOwner(arg0 names_v2.Tag) bool {
   147  	ret := m.ctrl.Call(m, "AuthOwner", arg0)
   148  	ret0, _ := ret[0].(bool)
   149  	return ret0
   150  }
   151  
   152  // AuthOwner indicates an expected call of AuthOwner
   153  func (mr *MockAuthorizerMockRecorder) AuthOwner(arg0 interface{}) *gomock.Call {
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthOwner", reflect.TypeOf((*MockAuthorizer)(nil).AuthOwner), arg0)
   155  }
   156  
   157  // AuthUnitAgent mocks base method
   158  func (m *MockAuthorizer) AuthUnitAgent() bool {
   159  	ret := m.ctrl.Call(m, "AuthUnitAgent")
   160  	ret0, _ := ret[0].(bool)
   161  	return ret0
   162  }
   163  
   164  // AuthUnitAgent indicates an expected call of AuthUnitAgent
   165  func (mr *MockAuthorizerMockRecorder) AuthUnitAgent() *gomock.Call {
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthUnitAgent", reflect.TypeOf((*MockAuthorizer)(nil).AuthUnitAgent))
   167  }
   168  
   169  // ConnectedModel mocks base method
   170  func (m *MockAuthorizer) ConnectedModel() string {
   171  	ret := m.ctrl.Call(m, "ConnectedModel")
   172  	ret0, _ := ret[0].(string)
   173  	return ret0
   174  }
   175  
   176  // ConnectedModel indicates an expected call of ConnectedModel
   177  func (mr *MockAuthorizerMockRecorder) ConnectedModel() *gomock.Call {
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectedModel", reflect.TypeOf((*MockAuthorizer)(nil).ConnectedModel))
   179  }
   180  
   181  // GetAuthTag mocks base method
   182  func (m *MockAuthorizer) GetAuthTag() names_v2.Tag {
   183  	ret := m.ctrl.Call(m, "GetAuthTag")
   184  	ret0, _ := ret[0].(names_v2.Tag)
   185  	return ret0
   186  }
   187  
   188  // GetAuthTag indicates an expected call of GetAuthTag
   189  func (mr *MockAuthorizerMockRecorder) GetAuthTag() *gomock.Call {
   190  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthTag", reflect.TypeOf((*MockAuthorizer)(nil).GetAuthTag))
   191  }
   192  
   193  // HasPermission mocks base method
   194  func (m *MockAuthorizer) HasPermission(arg0 permission.Access, arg1 names_v2.Tag) (bool, error) {
   195  	ret := m.ctrl.Call(m, "HasPermission", arg0, arg1)
   196  	ret0, _ := ret[0].(bool)
   197  	ret1, _ := ret[1].(error)
   198  	return ret0, ret1
   199  }
   200  
   201  // HasPermission indicates an expected call of HasPermission
   202  func (mr *MockAuthorizerMockRecorder) HasPermission(arg0, arg1 interface{}) *gomock.Call {
   203  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasPermission", reflect.TypeOf((*MockAuthorizer)(nil).HasPermission), arg0, arg1)
   204  }
   205  
   206  // UserHasPermission mocks base method
   207  func (m *MockAuthorizer) UserHasPermission(arg0 names_v2.UserTag, arg1 permission.Access, arg2 names_v2.Tag) (bool, error) {
   208  	ret := m.ctrl.Call(m, "UserHasPermission", arg0, arg1, arg2)
   209  	ret0, _ := ret[0].(bool)
   210  	ret1, _ := ret[1].(error)
   211  	return ret0, ret1
   212  }
   213  
   214  // UserHasPermission indicates an expected call of UserHasPermission
   215  func (mr *MockAuthorizerMockRecorder) UserHasPermission(arg0, arg1, arg2 interface{}) *gomock.Call {
   216  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserHasPermission", reflect.TypeOf((*MockAuthorizer)(nil).UserHasPermission), arg0, arg1, arg2)
   217  }