github.com/willyham/dosa@v2.3.1-0.20171024181418-1e446d37ee71+incompatible/mocks/client.go (about)

     1  // Copyright (c) 2017 Uber Technologies, Inc.
     2  //
     3  // Permission is hereby granted, free of charge, to any person obtaining a copy
     4  // of this software and associated documentation files (the "Software"), to deal
     5  // in the Software without restriction, including without limitation the rights
     6  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7  // copies of the Software, and to permit persons to whom the Software is
     8  // furnished to do so, subject to the following conditions:
     9  //
    10  // The above copyright notice and this permission notice shall be included in
    11  // all copies or substantial portions of the Software.
    12  //
    13  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    16  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    19  // THE SOFTWARE.
    20  
    21  // Automatically generated by MockGen. DO NOT EDIT!
    22  // Source: github.com/uber-go/dosa (interfaces: Client,AdminClient)
    23  
    24  package mocks
    25  
    26  import (
    27  	context "context"
    28  
    29  	gomock "github.com/golang/mock/gomock"
    30  	dosa "github.com/uber-go/dosa"
    31  )
    32  
    33  // MockClient is a mock of Client interface
    34  type MockClient struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *_MockClientRecorder
    37  }
    38  
    39  // Recorder for MockClient (not exported)
    40  type _MockClientRecorder struct {
    41  	mock *MockClient
    42  }
    43  
    44  // NewMockClient creates a new mock
    45  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    46  	mock := &MockClient{ctrl: ctrl}
    47  	mock.recorder = &_MockClientRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT adds an expectation
    52  func (_m *MockClient) EXPECT() *_MockClientRecorder {
    53  	return _m.recorder
    54  }
    55  
    56  // CreateIfNotExists is a mock implementation of MockClient.CreateIfNotExists
    57  func (_m *MockClient) CreateIfNotExists(_param0 context.Context, _param1 dosa.DomainObject) error {
    58  	ret := _m.ctrl.Call(_m, "CreateIfNotExists", _param0, _param1)
    59  	ret0, _ := ret[0].(error)
    60  	return ret0
    61  }
    62  
    63  func (_mr *_MockClientRecorder) CreateIfNotExists(arg0, arg1 interface{}) *gomock.Call {
    64  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateIfNotExists", arg0, arg1)
    65  }
    66  
    67  // Initialize is a mock implementation of MockClient.Initialize
    68  func (_m *MockClient) Initialize(_param0 context.Context) error {
    69  	ret := _m.ctrl.Call(_m, "Initialize", _param0)
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  func (_mr *_MockClientRecorder) Initialize(arg0 interface{}) *gomock.Call {
    75  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Initialize", arg0)
    76  }
    77  
    78  // Range is a mock implementation of MockClient.Range
    79  func (_m *MockClient) Range(_param0 context.Context, _param1 *dosa.RangeOp) ([]dosa.DomainObject, string, error) {
    80  	ret := _m.ctrl.Call(_m, "Range", _param0, _param1)
    81  	ret0, _ := ret[0].([]dosa.DomainObject)
    82  	ret1, _ := ret[1].(string)
    83  	ret2, _ := ret[2].(error)
    84  	return ret0, ret1, ret2
    85  }
    86  
    87  func (_mr *_MockClientRecorder) Range(arg0, arg1 interface{}) *gomock.Call {
    88  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Range", arg0, arg1)
    89  }
    90  
    91  // Read is a mock implementation of MockClient.Read
    92  func (_m *MockClient) Read(_param0 context.Context, _param1 []string, _param2 dosa.DomainObject) error {
    93  	ret := _m.ctrl.Call(_m, "Read", _param0, _param1, _param2)
    94  	ret0, _ := ret[0].(error)
    95  	return ret0
    96  }
    97  
    98  func (_mr *_MockClientRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call {
    99  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Read", arg0, arg1, arg2)
   100  }
   101  
   102  // Remove is a mock implementation of MockClient.Remove
   103  func (_m *MockClient) Remove(_param0 context.Context, _param1 dosa.DomainObject) error {
   104  	ret := _m.ctrl.Call(_m, "Remove", _param0, _param1)
   105  	ret0, _ := ret[0].(error)
   106  	return ret0
   107  }
   108  
   109  func (_mr *_MockClientRecorder) Remove(arg0, arg1 interface{}) *gomock.Call {
   110  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Remove", arg0, arg1)
   111  }
   112  
   113  // RemoveRange is a mock implementation of MockClient.RemoveRange
   114  func (_m *MockClient) RemoveRange(_param0 context.Context, _param1 *dosa.RemoveRangeOp) error {
   115  	ret := _m.ctrl.Call(_m, "RemoveRange", _param0, _param1)
   116  	ret0, _ := ret[0].(error)
   117  	return ret0
   118  }
   119  
   120  func (_mr *_MockClientRecorder) RemoveRange(arg0, arg1 interface{}) *gomock.Call {
   121  	return _mr.mock.ctrl.RecordCall(_mr.mock, "RemoveRange", arg0, arg1)
   122  }
   123  
   124  // ScanEverything is a mock implementation of MockClient.ScanEverything
   125  func (_m *MockClient) ScanEverything(_param0 context.Context, _param1 *dosa.ScanOp) ([]dosa.DomainObject, string, error) {
   126  	ret := _m.ctrl.Call(_m, "ScanEverything", _param0, _param1)
   127  	ret0, _ := ret[0].([]dosa.DomainObject)
   128  	ret1, _ := ret[1].(string)
   129  	ret2, _ := ret[2].(error)
   130  	return ret0, ret1, ret2
   131  }
   132  
   133  func (_mr *_MockClientRecorder) ScanEverything(arg0, arg1 interface{}) *gomock.Call {
   134  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ScanEverything", arg0, arg1)
   135  }
   136  
   137  // Upsert is a mock implementation of MockClient.Upsert
   138  func (_m *MockClient) Upsert(_param0 context.Context, _param1 []string, _param2 dosa.DomainObject) error {
   139  	ret := _m.ctrl.Call(_m, "Upsert", _param0, _param1, _param2)
   140  	ret0, _ := ret[0].(error)
   141  	return ret0
   142  }
   143  
   144  func (_mr *_MockClientRecorder) Upsert(arg0, arg1, arg2 interface{}) *gomock.Call {
   145  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Upsert", arg0, arg1, arg2)
   146  }
   147  
   148  // WalkRange is a mock implementation of MockClient.WalkRange
   149  func (_m *MockClient) WalkRange(_param0 context.Context, _param1 *dosa.RangeOp, _param2 func(dosa.DomainObject) error) error {
   150  	ret := _m.ctrl.Call(_m, "WalkRange", _param0, _param1, _param2)
   151  	ret0, _ := ret[0].(error)
   152  	return ret0
   153  }
   154  
   155  func (_mr *_MockClientRecorder) WalkRange(arg0, arg1, arg2 interface{}) *gomock.Call {
   156  	return _mr.mock.ctrl.RecordCall(_mr.mock, "WalkRange", arg0, arg1, arg2)
   157  }
   158  
   159  // MockAdminClient is a mock of AdminClient interface
   160  type MockAdminClient struct {
   161  	ctrl     *gomock.Controller
   162  	recorder *_MockAdminClientRecorder
   163  }
   164  
   165  // Recorder for MockAdminClient (not exported)
   166  type _MockAdminClientRecorder struct {
   167  	mock *MockAdminClient
   168  }
   169  
   170  // NewMockAdminClient creates a new mock
   171  func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient {
   172  	mock := &MockAdminClient{ctrl: ctrl}
   173  	mock.recorder = &_MockAdminClientRecorder{mock}
   174  	return mock
   175  }
   176  
   177  // EXPECT adds an expectation
   178  func (_m *MockAdminClient) EXPECT() *_MockAdminClientRecorder {
   179  	return _m.recorder
   180  }
   181  
   182  // CheckSchema is a mock implementation of MockAdminClient.CheckSchema
   183  func (_m *MockAdminClient) CheckSchema(_param0 context.Context, _param1 string) (*dosa.SchemaStatus, error) {
   184  	ret := _m.ctrl.Call(_m, "CheckSchema", _param0, _param1)
   185  	ret0, _ := ret[0].(*dosa.SchemaStatus)
   186  	ret1, _ := ret[1].(error)
   187  	return ret0, ret1
   188  }
   189  
   190  func (_mr *_MockAdminClientRecorder) CheckSchema(arg0, arg1 interface{}) *gomock.Call {
   191  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CheckSchema", arg0, arg1)
   192  }
   193  
   194  // CheckSchemaStatus is a mock implementation of MockAdminClient.CheckSchemaStatus
   195  func (_m *MockAdminClient) CheckSchemaStatus(_param0 context.Context, _param1 string, _param2 int32) (*dosa.SchemaStatus, error) {
   196  	ret := _m.ctrl.Call(_m, "CheckSchemaStatus", _param0, _param1, _param2)
   197  	ret0, _ := ret[0].(*dosa.SchemaStatus)
   198  	ret1, _ := ret[1].(error)
   199  	return ret0, ret1
   200  }
   201  
   202  func (_mr *_MockAdminClientRecorder) CheckSchemaStatus(arg0, arg1, arg2 interface{}) *gomock.Call {
   203  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CheckSchemaStatus", arg0, arg1, arg2)
   204  }
   205  
   206  // CreateScope is a mock implementation of MockAdminClient.CreateScope
   207  func (_m *MockAdminClient) CreateScope(_param0 context.Context, _param1 string) error {
   208  	ret := _m.ctrl.Call(_m, "CreateScope", _param0, _param1)
   209  	ret0, _ := ret[0].(error)
   210  	return ret0
   211  }
   212  
   213  func (_mr *_MockAdminClientRecorder) CreateScope(arg0, arg1 interface{}) *gomock.Call {
   214  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateScope", arg0, arg1)
   215  }
   216  
   217  // Directories is a mock implementation of MockAdminClient.Directories
   218  func (_m *MockAdminClient) Directories(_param0 []string) dosa.AdminClient {
   219  	ret := _m.ctrl.Call(_m, "Directories", _param0)
   220  	ret0, _ := ret[0].(dosa.AdminClient)
   221  	return ret0
   222  }
   223  
   224  func (_mr *_MockAdminClientRecorder) Directories(arg0 interface{}) *gomock.Call {
   225  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Directories", arg0)
   226  }
   227  
   228  // DropScope is a mock implementation of MockAdminClient.DropScope
   229  func (_m *MockAdminClient) DropScope(_param0 context.Context, _param1 string) error {
   230  	ret := _m.ctrl.Call(_m, "DropScope", _param0, _param1)
   231  	ret0, _ := ret[0].(error)
   232  	return ret0
   233  }
   234  
   235  func (_mr *_MockAdminClientRecorder) DropScope(arg0, arg1 interface{}) *gomock.Call {
   236  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DropScope", arg0, arg1)
   237  }
   238  
   239  // Excludes is a mock implementation of MockAdminClient.Excludes
   240  func (_m *MockAdminClient) Excludes(_param0 []string) dosa.AdminClient {
   241  	ret := _m.ctrl.Call(_m, "Excludes", _param0)
   242  	ret0, _ := ret[0].(dosa.AdminClient)
   243  	return ret0
   244  }
   245  
   246  func (_mr *_MockAdminClientRecorder) Excludes(arg0 interface{}) *gomock.Call {
   247  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Excludes", arg0)
   248  }
   249  
   250  // GetSchema is a mock implementation of MockAdminClient.GetSchema
   251  func (_m *MockAdminClient) GetSchema() ([]*dosa.EntityDefinition, error) {
   252  	ret := _m.ctrl.Call(_m, "GetSchema")
   253  	ret0, _ := ret[0].([]*dosa.EntityDefinition)
   254  	ret1, _ := ret[1].(error)
   255  	return ret0, ret1
   256  }
   257  
   258  func (_mr *_MockAdminClientRecorder) GetSchema() *gomock.Call {
   259  	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetSchema")
   260  }
   261  
   262  // Scope is a mock implementation of MockAdminClient.Scope
   263  func (_m *MockAdminClient) Scope(_param0 string) dosa.AdminClient {
   264  	ret := _m.ctrl.Call(_m, "Scope", _param0)
   265  	ret0, _ := ret[0].(dosa.AdminClient)
   266  	return ret0
   267  }
   268  
   269  func (_mr *_MockAdminClientRecorder) Scope(arg0 interface{}) *gomock.Call {
   270  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Scope", arg0)
   271  }
   272  
   273  // TruncateScope is a mock implementation of MockAdminClient.TruncateScope
   274  func (_m *MockAdminClient) TruncateScope(_param0 context.Context, _param1 string) error {
   275  	ret := _m.ctrl.Call(_m, "TruncateScope", _param0, _param1)
   276  	ret0, _ := ret[0].(error)
   277  	return ret0
   278  }
   279  
   280  func (_mr *_MockAdminClientRecorder) TruncateScope(arg0, arg1 interface{}) *gomock.Call {
   281  	return _mr.mock.ctrl.RecordCall(_mr.mock, "TruncateScope", arg0, arg1)
   282  }
   283  
   284  // UpsertSchema is a mock implementation of MockAdminClient.UpsertSchema
   285  func (_m *MockAdminClient) UpsertSchema(_param0 context.Context, _param1 string) (*dosa.SchemaStatus, error) {
   286  	ret := _m.ctrl.Call(_m, "UpsertSchema", _param0, _param1)
   287  	ret0, _ := ret[0].(*dosa.SchemaStatus)
   288  	ret1, _ := ret[1].(error)
   289  	return ret0, ret1
   290  }
   291  
   292  func (_mr *_MockAdminClientRecorder) UpsertSchema(arg0, arg1 interface{}) *gomock.Call {
   293  	return _mr.mock.ctrl.RecordCall(_mr.mock, "UpsertSchema", arg0, arg1)
   294  }