Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockEntityRepository
- func (m *MockEntityRepository) EXPECT() *MockEntityRepositoryMockRecorder
- func (m *MockEntityRepository) FetchLock(arg0 string) sync.Locker
- func (m *MockEntityRepository) GetResource(arg0 string) (resource0.Resource, error)
- func (m *MockEntityRepository) OpenResource(arg0 string) (resource0.Resource, io.ReadCloser, error)
- func (m *MockEntityRepository) SetResource(arg0 resource.Resource, arg1 io.Reader, ...) (resource0.Resource, error)
- type MockEntityRepositoryMockRecorder
- func (mr *MockEntityRepositoryMockRecorder) FetchLock(arg0 interface{}) *gomock.Call
- func (mr *MockEntityRepositoryMockRecorder) GetResource(arg0 interface{}) *gomock.Call
- func (mr *MockEntityRepositoryMockRecorder) OpenResource(arg0 interface{}) *gomock.Call
- func (mr *MockEntityRepositoryMockRecorder) SetResource(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockResourceGetter
- type MockResourceGetterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEntityRepository ¶
type MockEntityRepository struct {
// contains filtered or unexported fields
}
MockEntityRepository is a mock of EntityRepository interface.
func NewMockEntityRepository ¶
func NewMockEntityRepository(ctrl *gomock.Controller) *MockEntityRepository
NewMockEntityRepository creates a new mock instance.
func (*MockEntityRepository) EXPECT ¶
func (m *MockEntityRepository) EXPECT() *MockEntityRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEntityRepository) FetchLock ¶
func (m *MockEntityRepository) FetchLock(arg0 string) sync.Locker
FetchLock mocks base method.
func (*MockEntityRepository) GetResource ¶
func (m *MockEntityRepository) GetResource(arg0 string) (resource0.Resource, error)
GetResource mocks base method.
func (*MockEntityRepository) OpenResource ¶
func (m *MockEntityRepository) OpenResource(arg0 string) (resource0.Resource, io.ReadCloser, error)
OpenResource mocks base method.
func (*MockEntityRepository) SetResource ¶
func (m *MockEntityRepository) SetResource(arg0 resource.Resource, arg1 io.Reader, arg2 state.IncrementCharmModifiedVersionType) (resource0.Resource, error)
SetResource mocks base method.
type MockEntityRepositoryMockRecorder ¶
type MockEntityRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockEntityRepositoryMockRecorder is the mock recorder for MockEntityRepository.
func (*MockEntityRepositoryMockRecorder) FetchLock ¶
func (mr *MockEntityRepositoryMockRecorder) FetchLock(arg0 interface{}) *gomock.Call
FetchLock indicates an expected call of FetchLock.
func (*MockEntityRepositoryMockRecorder) GetResource ¶
func (mr *MockEntityRepositoryMockRecorder) GetResource(arg0 interface{}) *gomock.Call
GetResource indicates an expected call of GetResource.
func (*MockEntityRepositoryMockRecorder) OpenResource ¶
func (mr *MockEntityRepositoryMockRecorder) OpenResource(arg0 interface{}) *gomock.Call
OpenResource indicates an expected call of OpenResource.
func (*MockEntityRepositoryMockRecorder) SetResource ¶
func (mr *MockEntityRepositoryMockRecorder) SetResource(arg0, arg1, arg2 interface{}) *gomock.Call
SetResource indicates an expected call of SetResource.
type MockResourceGetter ¶
type MockResourceGetter struct {
// contains filtered or unexported fields
}
MockResourceGetter is a mock of ResourceGetter interface.
func NewMockResourceGetter ¶
func NewMockResourceGetter(ctrl *gomock.Controller) *MockResourceGetter
NewMockResourceGetter creates a new mock instance.
func (*MockResourceGetter) EXPECT ¶
func (m *MockResourceGetter) EXPECT() *MockResourceGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResourceGetter) GetResource ¶
func (m *MockResourceGetter) GetResource(arg0 repositories.ResourceRequest) (charmstore.ResourceData, error)
GetResource mocks base method.
type MockResourceGetterMockRecorder ¶
type MockResourceGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockResourceGetterMockRecorder is the mock recorder for MockResourceGetter.
func (*MockResourceGetterMockRecorder) GetResource ¶
func (mr *MockResourceGetterMockRecorder) GetResource(arg0 interface{}) *gomock.Call
GetResource indicates an expected call of GetResource.