file_storage

package
v0.0.0-...-e766170 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package mock_file_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	UploadFile(srcPath string, dstFolder string) (*models.Backup, error)
	GetFile(dstFolder string) (*models.Backup, error)
}

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

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

func (*MockInterface) GetFile

func (m *MockInterface) GetFile(dstFolder string) (*models.Backup, error)

GetFile mocks base method.

func (*MockInterface) UploadFile

func (m *MockInterface) UploadFile(srcPath, dstFolder string) (*models.Backup, error)

UploadFile mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) GetFile

func (mr *MockInterfaceMockRecorder) GetFile(dstFolder interface{}) *gomock.Call

GetFile indicates an expected call of GetFile.

func (*MockInterfaceMockRecorder) UploadFile

func (mr *MockInterfaceMockRecorder) UploadFile(srcPath, dstFolder interface{}) *gomock.Call

UploadFile indicates an expected call of UploadFile.

type S3Client

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

func NewS3Client

func NewS3Client(region string, bucket string) (*S3Client, error)

func (S3Client) GetFile

func (s S3Client) GetFile(dstFolder string) (*models.Backup, error)

func (S3Client) UploadFile

func (s S3Client) UploadFile(srcPath string, dstFolder string) (*models.Backup, error)

Jump to

Keyboard shortcuts

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