Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBackend
- type MockBackendAddPendingResourceCall
- func (c *MockBackendAddPendingResourceCall) Do(f func(string, string, resource0.Resource) (string, error)) *MockBackendAddPendingResourceCall
- func (c *MockBackendAddPendingResourceCall) DoAndReturn(f func(string, string, resource0.Resource) (string, error)) *MockBackendAddPendingResourceCall
- func (c *MockBackendAddPendingResourceCall) Return(arg0 string, arg1 error) *MockBackendAddPendingResourceCall
- type MockBackendListResourcesCall
- func (c *MockBackendListResourcesCall) Do(f func(string) (resource.ApplicationResources, error)) *MockBackendListResourcesCall
- func (c *MockBackendListResourcesCall) DoAndReturn(f func(string) (resource.ApplicationResources, error)) *MockBackendListResourcesCall
- func (c *MockBackendListResourcesCall) Return(arg0 resource.ApplicationResources, arg1 error) *MockBackendListResourcesCall
- type MockBackendMockRecorder
- type MockNewCharmRepository
- type MockNewCharmRepositoryMockRecorder
- type MockNewCharmRepositoryResolveResourcesCall
- func (c *MockNewCharmRepositoryResolveResourcesCall) Do(...) *MockNewCharmRepositoryResolveResourcesCall
- func (c *MockNewCharmRepositoryResolveResourcesCall) DoAndReturn(...) *MockNewCharmRepositoryResolveResourcesCall
- func (c *MockNewCharmRepositoryResolveResourcesCall) Return(arg0 []resource0.Resource, arg1 error) *MockNewCharmRepositoryResolveResourcesCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) AddPendingResource ¶
func (m *MockBackend) AddPendingResource(arg0, arg1 string, arg2 resource0.Resource) (string, error)
AddPendingResource mocks base method.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) ListResources ¶
func (m *MockBackend) ListResources(arg0 string) (resource.ApplicationResources, error)
ListResources mocks base method.
type MockBackendAddPendingResourceCall ¶
MockBackendAddPendingResourceCall wrap *gomock.Call
func (*MockBackendAddPendingResourceCall) Do ¶
func (c *MockBackendAddPendingResourceCall) Do(f func(string, string, resource0.Resource) (string, error)) *MockBackendAddPendingResourceCall
Do rewrite *gomock.Call.Do
func (*MockBackendAddPendingResourceCall) DoAndReturn ¶
func (c *MockBackendAddPendingResourceCall) DoAndReturn(f func(string, string, resource0.Resource) (string, error)) *MockBackendAddPendingResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendAddPendingResourceCall) Return ¶
func (c *MockBackendAddPendingResourceCall) Return(arg0 string, arg1 error) *MockBackendAddPendingResourceCall
Return rewrite *gomock.Call.Return
type MockBackendListResourcesCall ¶
MockBackendListResourcesCall wrap *gomock.Call
func (*MockBackendListResourcesCall) Do ¶
func (c *MockBackendListResourcesCall) Do(f func(string) (resource.ApplicationResources, error)) *MockBackendListResourcesCall
Do rewrite *gomock.Call.Do
func (*MockBackendListResourcesCall) DoAndReturn ¶
func (c *MockBackendListResourcesCall) DoAndReturn(f func(string) (resource.ApplicationResources, error)) *MockBackendListResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendListResourcesCall) Return ¶
func (c *MockBackendListResourcesCall) Return(arg0 resource.ApplicationResources, arg1 error) *MockBackendListResourcesCall
Return rewrite *gomock.Call.Return
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) AddPendingResource ¶
func (mr *MockBackendMockRecorder) AddPendingResource(arg0, arg1, arg2 any) *MockBackendAddPendingResourceCall
AddPendingResource indicates an expected call of AddPendingResource.
func (*MockBackendMockRecorder) ListResources ¶
func (mr *MockBackendMockRecorder) ListResources(arg0 any) *MockBackendListResourcesCall
ListResources indicates an expected call of ListResources.
type MockNewCharmRepository ¶
type MockNewCharmRepository struct {
// contains filtered or unexported fields
}
MockNewCharmRepository is a mock of NewCharmRepository interface.
func NewMockNewCharmRepository ¶
func NewMockNewCharmRepository(ctrl *gomock.Controller) *MockNewCharmRepository
NewMockNewCharmRepository creates a new mock instance.
func (*MockNewCharmRepository) EXPECT ¶
func (m *MockNewCharmRepository) EXPECT() *MockNewCharmRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNewCharmRepositoryMockRecorder ¶
type MockNewCharmRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockNewCharmRepositoryMockRecorder is the mock recorder for MockNewCharmRepository.
func (*MockNewCharmRepositoryMockRecorder) ResolveResources ¶
func (mr *MockNewCharmRepositoryMockRecorder) ResolveResources(arg0, arg1, arg2 any) *MockNewCharmRepositoryResolveResourcesCall
ResolveResources indicates an expected call of ResolveResources.
type MockNewCharmRepositoryResolveResourcesCall ¶
MockNewCharmRepositoryResolveResourcesCall wrap *gomock.Call
func (*MockNewCharmRepositoryResolveResourcesCall) Do ¶
func (c *MockNewCharmRepositoryResolveResourcesCall) Do(f func(context.Context, []resource0.Resource, charm.CharmID) ([]resource0.Resource, error)) *MockNewCharmRepositoryResolveResourcesCall
Do rewrite *gomock.Call.Do
func (*MockNewCharmRepositoryResolveResourcesCall) DoAndReturn ¶
func (c *MockNewCharmRepositoryResolveResourcesCall) DoAndReturn(f func(context.Context, []resource0.Resource, charm.CharmID) ([]resource0.Resource, error)) *MockNewCharmRepositoryResolveResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockNewCharmRepositoryResolveResourcesCall) Return ¶
func (c *MockNewCharmRepositoryResolveResourcesCall) Return(arg0 []resource0.Resource, arg1 error) *MockNewCharmRepositoryResolveResourcesCall
Return rewrite *gomock.Call.Return