mock_storage

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

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) Download

func (m *MockInterface) Download(ctx context.Context, url string) ([]byte, error)

Download mocks base method.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) GetPresignedUrl

func (m *MockInterface) GetPresignedUrl(ctx context.Context, key string) (string, error)

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.

func (*MockInterface) Upload

func (m *MockInterface) Upload(ctx context.Context, key, filename, filemimetype string, data []byte) (string, error)

Upload 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.

func (*MockInterfaceMockRecorder) Upload

func (mr *MockInterfaceMockRecorder) Upload(ctx, key, filename, filemimetype, data any) *gomock.Call

Upload indicates an expected call of Upload.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL