Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockStorage
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) ExpectPutObject() *MockStorage
- func (m *MockStorage) ExpectPutObjectError() *MockStorage
- func (m *MockStorage) ExpectRemoveObjectError() *MockStorage
- func (m *MockStorage) ExpectRemoveObjectNoError() *MockStorage
- func (m *MockStorage) ExpectRemoveObjectsNoError() *MockStorage
- func (m *MockStorage) GetObject(ctx context.Context, instanceID, resourceOwner, name string) ([]byte, func() (*static.Asset, error), error)
- func (m *MockStorage) GetObjectInfo(ctx context.Context, instanceID, resourceOwner, name string) (*static.Asset, error)
- func (m *MockStorage) PutObject(ctx context.Context, ...) (*static.Asset, error)
- func (m *MockStorage) RemoveObject(ctx context.Context, instanceID, resourceOwner, name string) error
- func (m *MockStorage) RemoveObjects(ctx context.Context, instanceID, resourceOwner string, ...) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) GetObject(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) GetObjectInfo(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) PutObject(...) *gomock.Call
- func (mr *MockStorageMockRecorder) RemoveObject(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) RemoveObjects(ctx, instanceID, resourceOwner, objectType interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func NewStorage ¶
func NewStorage(t *testing.T) *MockStorage
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) ExpectPutObject ¶
func (m *MockStorage) ExpectPutObject() *MockStorage
func (*MockStorage) ExpectPutObjectError ¶
func (m *MockStorage) ExpectPutObjectError() *MockStorage
func (*MockStorage) ExpectRemoveObjectError ¶
func (m *MockStorage) ExpectRemoveObjectError() *MockStorage
func (*MockStorage) ExpectRemoveObjectNoError ¶
func (m *MockStorage) ExpectRemoveObjectNoError() *MockStorage
func (*MockStorage) ExpectRemoveObjectsNoError ¶
func (m *MockStorage) ExpectRemoveObjectsNoError() *MockStorage
func (*MockStorage) GetObject ¶
func (m *MockStorage) GetObject(ctx context.Context, instanceID, resourceOwner, name string) ([]byte, func() (*static.Asset, error), error)
GetObject mocks base method.
func (*MockStorage) GetObjectInfo ¶
func (m *MockStorage) GetObjectInfo(ctx context.Context, instanceID, resourceOwner, name string) (*static.Asset, error)
GetObjectInfo mocks base method.
func (*MockStorage) PutObject ¶
func (m *MockStorage) PutObject(ctx context.Context, instanceID, location, resourceOwner, name, contentType string, objectType static.ObjectType, object io.Reader, objectSize int64) (*static.Asset, error)
PutObject mocks base method.
func (*MockStorage) RemoveObject ¶
func (m *MockStorage) RemoveObject(ctx context.Context, instanceID, resourceOwner, name string) error
RemoveObject mocks base method.
func (*MockStorage) RemoveObjects ¶
func (m *MockStorage) RemoveObjects(ctx context.Context, instanceID, resourceOwner string, objectType static.ObjectType) error
RemoveObjects mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) GetObject ¶
func (mr *MockStorageMockRecorder) GetObject(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockStorageMockRecorder) GetObjectInfo ¶
func (mr *MockStorageMockRecorder) GetObjectInfo(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
GetObjectInfo indicates an expected call of GetObjectInfo.
func (*MockStorageMockRecorder) PutObject ¶
func (mr *MockStorageMockRecorder) PutObject(ctx, instanceID, location, resourceOwner, name, contentType, objectType, object, objectSize interface{}) *gomock.Call
PutObject indicates an expected call of PutObject.
func (*MockStorageMockRecorder) RemoveObject ¶
func (mr *MockStorageMockRecorder) RemoveObject(ctx, instanceID, resourceOwner, name interface{}) *gomock.Call
RemoveObject indicates an expected call of RemoveObject.
func (*MockStorageMockRecorder) RemoveObjects ¶
func (mr *MockStorageMockRecorder) RemoveObjects(ctx, instanceID, resourceOwner, objectType interface{}) *gomock.Call
RemoveObjects indicates an expected call of RemoveObjects.