github.com/uber/kraken@v0.1.4/mocks/origin/blobclient/clusterclient.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/uber/kraken/origin/blobclient (interfaces: ClusterClient)
     3  
     4  // Package mockblobclient is a generated GoMock package.
     5  package mockblobclient
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	core "github.com/uber/kraken/core"
    10  	io "io"
    11  	reflect "reflect"
    12  )
    13  
    14  // MockClusterClient is a mock of ClusterClient interface
    15  type MockClusterClient struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockClusterClientMockRecorder
    18  }
    19  
    20  // MockClusterClientMockRecorder is the mock recorder for MockClusterClient
    21  type MockClusterClientMockRecorder struct {
    22  	mock *MockClusterClient
    23  }
    24  
    25  // NewMockClusterClient creates a new mock instance
    26  func NewMockClusterClient(ctrl *gomock.Controller) *MockClusterClient {
    27  	mock := &MockClusterClient{ctrl: ctrl}
    28  	mock.recorder = &MockClusterClientMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // DownloadBlob mocks base method
    38  func (m *MockClusterClient) DownloadBlob(arg0 string, arg1 core.Digest, arg2 io.Writer) error {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "DownloadBlob", arg0, arg1, arg2)
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // DownloadBlob indicates an expected call of DownloadBlob
    46  func (mr *MockClusterClientMockRecorder) DownloadBlob(arg0, arg1, arg2 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadBlob", reflect.TypeOf((*MockClusterClient)(nil).DownloadBlob), arg0, arg1, arg2)
    49  }
    50  
    51  // GetMetaInfo mocks base method
    52  func (m *MockClusterClient) GetMetaInfo(arg0 string, arg1 core.Digest) (*core.MetaInfo, error) {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "GetMetaInfo", arg0, arg1)
    55  	ret0, _ := ret[0].(*core.MetaInfo)
    56  	ret1, _ := ret[1].(error)
    57  	return ret0, ret1
    58  }
    59  
    60  // GetMetaInfo indicates an expected call of GetMetaInfo
    61  func (mr *MockClusterClientMockRecorder) GetMetaInfo(arg0, arg1 interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetaInfo", reflect.TypeOf((*MockClusterClient)(nil).GetMetaInfo), arg0, arg1)
    64  }
    65  
    66  // OverwriteMetaInfo mocks base method
    67  func (m *MockClusterClient) OverwriteMetaInfo(arg0 core.Digest, arg1 int64) error {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "OverwriteMetaInfo", arg0, arg1)
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  // OverwriteMetaInfo indicates an expected call of OverwriteMetaInfo
    75  func (mr *MockClusterClientMockRecorder) OverwriteMetaInfo(arg0, arg1 interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OverwriteMetaInfo", reflect.TypeOf((*MockClusterClient)(nil).OverwriteMetaInfo), arg0, arg1)
    78  }
    79  
    80  // Owners mocks base method
    81  func (m *MockClusterClient) Owners(arg0 core.Digest) ([]core.PeerContext, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "Owners", arg0)
    84  	ret0, _ := ret[0].([]core.PeerContext)
    85  	ret1, _ := ret[1].(error)
    86  	return ret0, ret1
    87  }
    88  
    89  // Owners indicates an expected call of Owners
    90  func (mr *MockClusterClientMockRecorder) Owners(arg0 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Owners", reflect.TypeOf((*MockClusterClient)(nil).Owners), arg0)
    93  }
    94  
    95  // ReplicateToRemote mocks base method
    96  func (m *MockClusterClient) ReplicateToRemote(arg0 string, arg1 core.Digest, arg2 string) error {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "ReplicateToRemote", arg0, arg1, arg2)
    99  	ret0, _ := ret[0].(error)
   100  	return ret0
   101  }
   102  
   103  // ReplicateToRemote indicates an expected call of ReplicateToRemote
   104  func (mr *MockClusterClientMockRecorder) ReplicateToRemote(arg0, arg1, arg2 interface{}) *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateToRemote", reflect.TypeOf((*MockClusterClient)(nil).ReplicateToRemote), arg0, arg1, arg2)
   107  }
   108  
   109  // Stat mocks base method
   110  func (m *MockClusterClient) Stat(arg0 string, arg1 core.Digest) (*core.BlobInfo, error) {
   111  	m.ctrl.T.Helper()
   112  	ret := m.ctrl.Call(m, "Stat", arg0, arg1)
   113  	ret0, _ := ret[0].(*core.BlobInfo)
   114  	ret1, _ := ret[1].(error)
   115  	return ret0, ret1
   116  }
   117  
   118  // Stat indicates an expected call of Stat
   119  func (mr *MockClusterClientMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call {
   120  	mr.mock.ctrl.T.Helper()
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stat", reflect.TypeOf((*MockClusterClient)(nil).Stat), arg0, arg1)
   122  }
   123  
   124  // UploadBlob mocks base method
   125  func (m *MockClusterClient) UploadBlob(arg0 string, arg1 core.Digest, arg2 io.Reader) error {
   126  	m.ctrl.T.Helper()
   127  	ret := m.ctrl.Call(m, "UploadBlob", arg0, arg1, arg2)
   128  	ret0, _ := ret[0].(error)
   129  	return ret0
   130  }
   131  
   132  // UploadBlob indicates an expected call of UploadBlob
   133  func (mr *MockClusterClientMockRecorder) UploadBlob(arg0, arg1, arg2 interface{}) *gomock.Call {
   134  	mr.mock.ctrl.T.Helper()
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadBlob", reflect.TypeOf((*MockClusterClient)(nil).UploadBlob), arg0, arg1, arg2)
   136  }