github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/mocks/resources_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/state (interfaces: Resources)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/resources_mock.go github.com/juju/juju/state Resources
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	io "io"
    14  	reflect "reflect"
    15  	time "time"
    16  
    17  	resource "github.com/juju/charm/v12/resource"
    18  	resources "github.com/juju/juju/core/resources"
    19  	state "github.com/juju/juju/state"
    20  	gomock "go.uber.org/mock/gomock"
    21  )
    22  
    23  // MockResources is a mock of Resources interface.
    24  type MockResources struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockResourcesMockRecorder
    27  }
    28  
    29  // MockResourcesMockRecorder is the mock recorder for MockResources.
    30  type MockResourcesMockRecorder struct {
    31  	mock *MockResources
    32  }
    33  
    34  // NewMockResources creates a new mock instance.
    35  func NewMockResources(ctrl *gomock.Controller) *MockResources {
    36  	mock := &MockResources{ctrl: ctrl}
    37  	mock.recorder = &MockResourcesMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockResources) EXPECT() *MockResourcesMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // AddPendingResource mocks base method.
    47  func (m *MockResources) AddPendingResource(arg0, arg1 string, arg2 resource.Resource) (string, error) {
    48  	m.ctrl.T.Helper()
    49  	ret := m.ctrl.Call(m, "AddPendingResource", arg0, arg1, arg2)
    50  	ret0, _ := ret[0].(string)
    51  	ret1, _ := ret[1].(error)
    52  	return ret0, ret1
    53  }
    54  
    55  // AddPendingResource indicates an expected call of AddPendingResource.
    56  func (mr *MockResourcesMockRecorder) AddPendingResource(arg0, arg1, arg2 any) *gomock.Call {
    57  	mr.mock.ctrl.T.Helper()
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPendingResource", reflect.TypeOf((*MockResources)(nil).AddPendingResource), arg0, arg1, arg2)
    59  }
    60  
    61  // GetPendingResource mocks base method.
    62  func (m *MockResources) GetPendingResource(arg0, arg1, arg2 string) (resources.Resource, error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "GetPendingResource", arg0, arg1, arg2)
    65  	ret0, _ := ret[0].(resources.Resource)
    66  	ret1, _ := ret[1].(error)
    67  	return ret0, ret1
    68  }
    69  
    70  // GetPendingResource indicates an expected call of GetPendingResource.
    71  func (mr *MockResourcesMockRecorder) GetPendingResource(arg0, arg1, arg2 any) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPendingResource", reflect.TypeOf((*MockResources)(nil).GetPendingResource), arg0, arg1, arg2)
    74  }
    75  
    76  // GetResource mocks base method.
    77  func (m *MockResources) GetResource(arg0, arg1 string) (resources.Resource, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "GetResource", arg0, arg1)
    80  	ret0, _ := ret[0].(resources.Resource)
    81  	ret1, _ := ret[1].(error)
    82  	return ret0, ret1
    83  }
    84  
    85  // GetResource indicates an expected call of GetResource.
    86  func (mr *MockResourcesMockRecorder) GetResource(arg0, arg1 any) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResource", reflect.TypeOf((*MockResources)(nil).GetResource), arg0, arg1)
    89  }
    90  
    91  // ListPendingResources mocks base method.
    92  func (m *MockResources) ListPendingResources(arg0 string) (resources.ApplicationResources, error) {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "ListPendingResources", arg0)
    95  	ret0, _ := ret[0].(resources.ApplicationResources)
    96  	ret1, _ := ret[1].(error)
    97  	return ret0, ret1
    98  }
    99  
   100  // ListPendingResources indicates an expected call of ListPendingResources.
   101  func (mr *MockResourcesMockRecorder) ListPendingResources(arg0 any) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPendingResources", reflect.TypeOf((*MockResources)(nil).ListPendingResources), arg0)
   104  }
   105  
   106  // ListResources mocks base method.
   107  func (m *MockResources) ListResources(arg0 string) (resources.ApplicationResources, error) {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "ListResources", arg0)
   110  	ret0, _ := ret[0].(resources.ApplicationResources)
   111  	ret1, _ := ret[1].(error)
   112  	return ret0, ret1
   113  }
   114  
   115  // ListResources indicates an expected call of ListResources.
   116  func (mr *MockResourcesMockRecorder) ListResources(arg0 any) *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResources", reflect.TypeOf((*MockResources)(nil).ListResources), arg0)
   119  }
   120  
   121  // OpenResource mocks base method.
   122  func (m *MockResources) OpenResource(arg0, arg1 string) (resources.Resource, io.ReadCloser, error) {
   123  	m.ctrl.T.Helper()
   124  	ret := m.ctrl.Call(m, "OpenResource", arg0, arg1)
   125  	ret0, _ := ret[0].(resources.Resource)
   126  	ret1, _ := ret[1].(io.ReadCloser)
   127  	ret2, _ := ret[2].(error)
   128  	return ret0, ret1, ret2
   129  }
   130  
   131  // OpenResource indicates an expected call of OpenResource.
   132  func (mr *MockResourcesMockRecorder) OpenResource(arg0, arg1 any) *gomock.Call {
   133  	mr.mock.ctrl.T.Helper()
   134  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenResource", reflect.TypeOf((*MockResources)(nil).OpenResource), arg0, arg1)
   135  }
   136  
   137  // OpenResourceForUniter mocks base method.
   138  func (m *MockResources) OpenResourceForUniter(arg0, arg1 string) (resources.Resource, io.ReadCloser, error) {
   139  	m.ctrl.T.Helper()
   140  	ret := m.ctrl.Call(m, "OpenResourceForUniter", arg0, arg1)
   141  	ret0, _ := ret[0].(resources.Resource)
   142  	ret1, _ := ret[1].(io.ReadCloser)
   143  	ret2, _ := ret[2].(error)
   144  	return ret0, ret1, ret2
   145  }
   146  
   147  // OpenResourceForUniter indicates an expected call of OpenResourceForUniter.
   148  func (mr *MockResourcesMockRecorder) OpenResourceForUniter(arg0, arg1 any) *gomock.Call {
   149  	mr.mock.ctrl.T.Helper()
   150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenResourceForUniter", reflect.TypeOf((*MockResources)(nil).OpenResourceForUniter), arg0, arg1)
   151  }
   152  
   153  // RemovePendingAppResources mocks base method.
   154  func (m *MockResources) RemovePendingAppResources(arg0 string, arg1 map[string]string) error {
   155  	m.ctrl.T.Helper()
   156  	ret := m.ctrl.Call(m, "RemovePendingAppResources", arg0, arg1)
   157  	ret0, _ := ret[0].(error)
   158  	return ret0
   159  }
   160  
   161  // RemovePendingAppResources indicates an expected call of RemovePendingAppResources.
   162  func (mr *MockResourcesMockRecorder) RemovePendingAppResources(arg0, arg1 any) *gomock.Call {
   163  	mr.mock.ctrl.T.Helper()
   164  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePendingAppResources", reflect.TypeOf((*MockResources)(nil).RemovePendingAppResources), arg0, arg1)
   165  }
   166  
   167  // SetCharmStoreResources mocks base method.
   168  func (m *MockResources) SetCharmStoreResources(arg0 string, arg1 []resource.Resource, arg2 time.Time) error {
   169  	m.ctrl.T.Helper()
   170  	ret := m.ctrl.Call(m, "SetCharmStoreResources", arg0, arg1, arg2)
   171  	ret0, _ := ret[0].(error)
   172  	return ret0
   173  }
   174  
   175  // SetCharmStoreResources indicates an expected call of SetCharmStoreResources.
   176  func (mr *MockResourcesMockRecorder) SetCharmStoreResources(arg0, arg1, arg2 any) *gomock.Call {
   177  	mr.mock.ctrl.T.Helper()
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCharmStoreResources", reflect.TypeOf((*MockResources)(nil).SetCharmStoreResources), arg0, arg1, arg2)
   179  }
   180  
   181  // SetResource mocks base method.
   182  func (m *MockResources) SetResource(arg0, arg1 string, arg2 resource.Resource, arg3 io.Reader, arg4 state.IncrementCharmModifiedVersionType) (resources.Resource, error) {
   183  	m.ctrl.T.Helper()
   184  	ret := m.ctrl.Call(m, "SetResource", arg0, arg1, arg2, arg3, arg4)
   185  	ret0, _ := ret[0].(resources.Resource)
   186  	ret1, _ := ret[1].(error)
   187  	return ret0, ret1
   188  }
   189  
   190  // SetResource indicates an expected call of SetResource.
   191  func (mr *MockResourcesMockRecorder) SetResource(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
   192  	mr.mock.ctrl.T.Helper()
   193  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetResource", reflect.TypeOf((*MockResources)(nil).SetResource), arg0, arg1, arg2, arg3, arg4)
   194  }
   195  
   196  // SetUnitResource mocks base method.
   197  func (m *MockResources) SetUnitResource(arg0, arg1 string, arg2 resource.Resource) (resources.Resource, error) {
   198  	m.ctrl.T.Helper()
   199  	ret := m.ctrl.Call(m, "SetUnitResource", arg0, arg1, arg2)
   200  	ret0, _ := ret[0].(resources.Resource)
   201  	ret1, _ := ret[1].(error)
   202  	return ret0, ret1
   203  }
   204  
   205  // SetUnitResource indicates an expected call of SetUnitResource.
   206  func (mr *MockResourcesMockRecorder) SetUnitResource(arg0, arg1, arg2 any) *gomock.Call {
   207  	mr.mock.ctrl.T.Helper()
   208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUnitResource", reflect.TypeOf((*MockResources)(nil).SetUnitResource), arg0, arg1, arg2)
   209  }
   210  
   211  // UpdatePendingResource mocks base method.
   212  func (m *MockResources) UpdatePendingResource(arg0, arg1, arg2 string, arg3 resource.Resource, arg4 io.Reader) (resources.Resource, error) {
   213  	m.ctrl.T.Helper()
   214  	ret := m.ctrl.Call(m, "UpdatePendingResource", arg0, arg1, arg2, arg3, arg4)
   215  	ret0, _ := ret[0].(resources.Resource)
   216  	ret1, _ := ret[1].(error)
   217  	return ret0, ret1
   218  }
   219  
   220  // UpdatePendingResource indicates an expected call of UpdatePendingResource.
   221  func (mr *MockResourcesMockRecorder) UpdatePendingResource(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
   222  	mr.mock.ctrl.T.Helper()
   223  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePendingResource", reflect.TypeOf((*MockResources)(nil).UpdatePendingResource), arg0, arg1, arg2, arg3, arg4)
   224  }