s3mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Client

type S3Client struct {
	mock.Mock
}

S3Client is an autogenerated mock type for the S3Client type

func NewS3Client

func NewS3Client(t interface {
	mock.TestingT
	Cleanup(func())
}) *S3Client

NewS3Client creates a new instance of S3Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*S3Client) DeleteObject

func (_m *S3Client) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)

DeleteObject provides a mock function with given fields: ctx, params, optFns

func (*S3Client) DeleteObjects

func (_m *S3Client) DeleteObjects(ctx context.Context, params *s3.DeleteObjectsInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectsOutput, error)

DeleteObjects provides a mock function with given fields: ctx, params, optFns

func (*S3Client) GetObject

func (_m *S3Client) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)

GetObject provides a mock function with given fields: ctx, params, optFns

func (*S3Client) HeadObject

func (_m *S3Client) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)

HeadObject provides a mock function with given fields: ctx, params, optFns

func (*S3Client) ListObjectsV2

func (_m *S3Client) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)

ListObjectsV2 provides a mock function with given fields: ctx, params, optFns

func (*S3Client) Options

func (_m *S3Client) Options() s3.Options

Options provides a mock function with given fields:

func (*S3Client) PutObject

func (_m *S3Client) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)

PutObject provides a mock function with given fields: ctx, params, optFns

Jump to

Keyboard shortcuts

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