Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) CreateUrlByKey(key string) string
- func (m *MockInterface) Delete(ctx context.Context, key string) error
- func (m *MockInterface) Download(ctx context.Context, url string) ([]byte, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetPresignedUrl(ctx context.Context, key string) (string, error)
- func (m *MockInterface) GetPresignedUrlWithDuration(ctx context.Context, key string, presignedDuration time.Duration) (string, error)
- func (m *MockInterface) Upload(ctx context.Context, key, filename, filemimetype string, data []byte) (string, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) CreateUrlByKey(key any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Delete(ctx, key any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Download(ctx, url any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetPresignedUrl(ctx, key any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetPresignedUrlWithDuration(ctx, key, presignedDuration any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Upload(ctx, key, filename, filemimetype, data any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) CreateUrlByKey ¶
func (m *MockInterface) CreateUrlByKey(key string) string
CreateUrlByKey mocks base method.
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(ctx context.Context, key string) error
Delete mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetPresignedUrl ¶
GetPresignedUrl mocks base method.
func (*MockInterface) GetPresignedUrlWithDuration ¶
func (m *MockInterface) GetPresignedUrlWithDuration(ctx context.Context, key string, presignedDuration time.Duration) (string, error)
GetPresignedUrlWithDuration mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) CreateUrlByKey ¶
func (mr *MockInterfaceMockRecorder) CreateUrlByKey(key any) *gomock.Call
CreateUrlByKey indicates an expected call of CreateUrlByKey.
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(ctx, key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) Download ¶
func (mr *MockInterfaceMockRecorder) Download(ctx, url any) *gomock.Call
Download indicates an expected call of Download.
func (*MockInterfaceMockRecorder) GetPresignedUrl ¶
func (mr *MockInterfaceMockRecorder) GetPresignedUrl(ctx, key any) *gomock.Call
GetPresignedUrl indicates an expected call of GetPresignedUrl.
func (*MockInterfaceMockRecorder) GetPresignedUrlWithDuration ¶
func (mr *MockInterfaceMockRecorder) GetPresignedUrlWithDuration(ctx, key, presignedDuration any) *gomock.Call
GetPresignedUrlWithDuration indicates an expected call of GetPresignedUrlWithDuration.