mock_storage

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 8 Imported by: 0

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 MockHTTPClient

type MockHTTPClient struct {
	// contains filtered or unexported fields
}

MockHTTPClient is a mock of HTTPClient interface

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance

func (*MockHTTPClient) EXPECT

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

func (*MockHTTPClient) Get

func (m *MockHTTPClient) Get(url string) (*http.Response, error)

Get mocks base method

type MockHTTPClientMockRecorder

type MockHTTPClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient

func (*MockHTTPClientMockRecorder) Get

func (mr *MockHTTPClientMockRecorder) Get(url interface{}) *gomock.Call

Get indicates an expected call of Get

type MockS3Client

type MockS3Client struct {
	// contains filtered or unexported fields
}

MockS3Client is a mock of S3Client interface

func NewMockS3Client

func NewMockS3Client(ctrl *gomock.Controller) *MockS3Client

NewMockS3Client creates a new mock instance

func (*MockS3Client) EXPECT

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

func (*MockS3Client) GetObject

func (m *MockS3Client) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)

GetObject mocks base method

func (*MockS3Client) PutObject

func (m *MockS3Client) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)

PutObject mocks base method

type MockS3ClientMockRecorder

type MockS3ClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockS3ClientMockRecorder is the mock recorder for MockS3Client

func (*MockS3ClientMockRecorder) GetObject

func (mr *MockS3ClientMockRecorder) GetObject(input interface{}) *gomock.Call

GetObject indicates an expected call of GetObject

func (*MockS3ClientMockRecorder) PutObject

func (mr *MockS3ClientMockRecorder) PutObject(input interface{}) *gomock.Call

PutObject indicates an expected call of PutObject

type MockS3Downloader

type MockS3Downloader struct {
	// contains filtered or unexported fields
}

MockS3Downloader is a mock of S3Downloader interface

func NewMockS3Downloader

func NewMockS3Downloader(ctrl *gomock.Controller) *MockS3Downloader

NewMockS3Downloader creates a new mock instance

func (*MockS3Downloader) Download

func (m *MockS3Downloader) Download(w io.WriterAt, input *s3.GetObjectInput, options ...func(*s3manager.Downloader)) (int64, error)

Download mocks base method

func (*MockS3Downloader) EXPECT

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

type MockS3DownloaderMockRecorder

type MockS3DownloaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockS3DownloaderMockRecorder is the mock recorder for MockS3Downloader

func (*MockS3DownloaderMockRecorder) Download

func (mr *MockS3DownloaderMockRecorder) Download(w, input interface{}, options ...interface{}) *gomock.Call

Download indicates an expected call of Download

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 (*MockStorage) Download

func (m *MockStorage) Download(key string) (*bytes.Reader, error)

Download mocks base method

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) UploadBytes

func (m *MockStorage) UploadBytes(b *bytes.Buffer, remotePathName string) error

UploadBytes mocks base method

func (*MockStorage) UploadFromRemote

func (m *MockStorage) UploadFromRemote(remoteURL, remoteDir string) (storage.UploadedImage, error)

UploadFromRemote mocks base method

type MockStorageMockRecorder

type MockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) Download

func (mr *MockStorageMockRecorder) Download(key interface{}) *gomock.Call

Download indicates an expected call of Download

func (*MockStorageMockRecorder) UploadBytes

func (mr *MockStorageMockRecorder) UploadBytes(b, remotePathName interface{}) *gomock.Call

UploadBytes indicates an expected call of UploadBytes

func (*MockStorageMockRecorder) UploadFromRemote

func (mr *MockStorageMockRecorder) UploadFromRemote(remoteURL, remoteDir interface{}) *gomock.Call

UploadFromRemote indicates an expected call of UploadFromRemote

Jump to

Keyboard shortcuts

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