Documentation ¶
Overview ¶
Package s3Client is a generated GoMock package.
Index ¶
- type MockS3Client
- func (m *MockS3Client) DeleteFileFromS3(ctx context.Context, fileName, s3Bucket string) error
- func (m *MockS3Client) DoesObjectExist(ctx context.Context, fileName, s3Bucket string) (bool, error)
- func (m *MockS3Client) DownloadFileFromS3(ctx context.Context, fileName, s3Bucket string) (io.ReadCloser, int64, error)
- func (m *MockS3Client) EXPECT() *MockS3ClientMockRecorder
- func (m *MockS3Client) PushDataToS3(ctx context.Context, data []byte, fileName, s3Bucket string) error
- func (m *MockS3Client) UpdateObjectTag(ctx context.Context, objectName, s3Bucket, key, value string) (bool, error)
- type MockS3ClientMockRecorder
- func (mr *MockS3ClientMockRecorder) DeleteFileFromS3(ctx, fileName, s3Bucket interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) DoesObjectExist(ctx, fileName, s3Bucket interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) DownloadFileFromS3(ctx, fileName, s3Bucket interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) PushDataToS3(ctx, data, fileName, s3Bucket interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) UpdateObjectTag(ctx, objectName, s3Bucket, key, value interface{}) *gomock.Call
- type S3Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) DeleteFileFromS3 ¶ added in v1.0.5
func (m *MockS3Client) DeleteFileFromS3(ctx context.Context, fileName, s3Bucket string) error
DeleteFileFromS3 mocks base method
func (*MockS3Client) DoesObjectExist ¶ added in v1.0.5
func (m *MockS3Client) DoesObjectExist(ctx context.Context, fileName, s3Bucket string) (bool, error)
DoesObjectExist mocks base method
func (*MockS3Client) DownloadFileFromS3 ¶
func (m *MockS3Client) DownloadFileFromS3(ctx context.Context, fileName, s3Bucket string) (io.ReadCloser, int64, error)
DownloadFileFromS3 mocks base method
func (*MockS3Client) EXPECT ¶
func (m *MockS3Client) EXPECT() *MockS3ClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockS3Client) PushDataToS3 ¶
func (m *MockS3Client) PushDataToS3(ctx context.Context, data []byte, fileName, s3Bucket string) error
PushDataToS3 mocks base method
func (*MockS3Client) UpdateObjectTag ¶ added in v1.0.5
func (m *MockS3Client) UpdateObjectTag(ctx context.Context, objectName, s3Bucket, key, value string) (bool, error)
UpdateObjectTag mocks base method
type MockS3ClientMockRecorder ¶
type MockS3ClientMockRecorder struct {
// contains filtered or unexported fields
}
MockS3ClientMockRecorder is the mock recorder for MockS3Client
func (*MockS3ClientMockRecorder) DeleteFileFromS3 ¶ added in v1.0.5
func (mr *MockS3ClientMockRecorder) DeleteFileFromS3(ctx, fileName, s3Bucket interface{}) *gomock.Call
DeleteFileFromS3 indicates an expected call of DeleteFileFromS3
func (*MockS3ClientMockRecorder) DoesObjectExist ¶ added in v1.0.5
func (mr *MockS3ClientMockRecorder) DoesObjectExist(ctx, fileName, s3Bucket interface{}) *gomock.Call
DoesObjectExist indicates an expected call of DoesObjectExist
func (*MockS3ClientMockRecorder) DownloadFileFromS3 ¶
func (mr *MockS3ClientMockRecorder) DownloadFileFromS3(ctx, fileName, s3Bucket interface{}) *gomock.Call
DownloadFileFromS3 indicates an expected call of DownloadFileFromS3
func (*MockS3ClientMockRecorder) PushDataToS3 ¶
func (mr *MockS3ClientMockRecorder) PushDataToS3(ctx, data, fileName, s3Bucket interface{}) *gomock.Call
PushDataToS3 indicates an expected call of PushDataToS3
func (*MockS3ClientMockRecorder) UpdateObjectTag ¶ added in v1.0.5
func (mr *MockS3ClientMockRecorder) UpdateObjectTag(ctx, objectName, s3Bucket, key, value interface{}) *gomock.Call
UpdateObjectTag indicates an expected call of UpdateObjectTag
type S3Client ¶
type S3Client interface { PushDataToS3(ctx context.Context, data []byte, fileName string, s3Bucket string) error DownloadFileFromS3(ctx context.Context, fileName string, s3Bucket string) (io.ReadCloser, int64, error) DoesObjectExist(ctx context.Context, fileName string, s3Bucket string) (bool, error) UpdateObjectTag(ctx context.Context, objectName, s3Bucket, key, value string) (bool, error) DeleteFileFromS3(ctx context.Context, fileName string, s3Bucket string) error }