mocks

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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 MockS3Client

type MockS3Client struct {
	mock.Mock
}

MockS3Client is an autogenerated mock type for the S3Client type

func NewMockS3Client

func NewMockS3Client(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockS3Client

NewMockS3Client creates a new instance of MockS3Client. 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 (*MockS3Client) DeleteObjects

func (_m *MockS3Client) DeleteObjects(ctx context.Context, bucket string, keys []string) error

DeleteObjects provides a mock function with given fields: ctx, bucket, keys

func (*MockS3Client) DownloadObject

func (_m *MockS3Client) DownloadObject(ctx context.Context, bucket string, key string, buf []byte) (int64, error)

DownloadObject provides a mock function with given fields: ctx, bucket, key, buf

func (*MockS3Client) EXPECT

func (_m *MockS3Client) EXPECT() *MockS3Client_Expecter

func (*MockS3Client) ListObjects

func (_m *MockS3Client) ListObjects(ctx context.Context, bucket string, prefix *string, continuationToken *string) ([]*aws.ObjectInfo, *string, error)

ListObjects provides a mock function with given fields: ctx, bucket, prefix, continuationToken

type MockS3Client_DeleteObjects_Call

type MockS3Client_DeleteObjects_Call struct {
	*mock.Call
}

MockS3Client_DeleteObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteObjects'

func (*MockS3Client_DeleteObjects_Call) Return

func (*MockS3Client_DeleteObjects_Call) Run

func (*MockS3Client_DeleteObjects_Call) RunAndReturn

type MockS3Client_DownloadObject_Call

type MockS3Client_DownloadObject_Call struct {
	*mock.Call
}

MockS3Client_DownloadObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadObject'

func (*MockS3Client_DownloadObject_Call) Return

func (*MockS3Client_DownloadObject_Call) Run

func (*MockS3Client_DownloadObject_Call) RunAndReturn

type MockS3Client_Expecter

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

func (*MockS3Client_Expecter) DeleteObjects

func (_e *MockS3Client_Expecter) DeleteObjects(ctx interface{}, bucket interface{}, keys interface{}) *MockS3Client_DeleteObjects_Call

DeleteObjects is a helper method to define mock.On call

  • ctx context.Context
  • bucket string
  • keys []string

func (*MockS3Client_Expecter) DownloadObject

func (_e *MockS3Client_Expecter) DownloadObject(ctx interface{}, bucket interface{}, key interface{}, buf interface{}) *MockS3Client_DownloadObject_Call

DownloadObject is a helper method to define mock.On call

  • ctx context.Context
  • bucket string
  • key string
  • buf []byte

func (*MockS3Client_Expecter) ListObjects

func (_e *MockS3Client_Expecter) ListObjects(ctx interface{}, bucket interface{}, prefix interface{}, continuationToken interface{}) *MockS3Client_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx context.Context
  • bucket string
  • prefix *string
  • continuationToken *string

type MockS3Client_ListObjects_Call

type MockS3Client_ListObjects_Call struct {
	*mock.Call
}

MockS3Client_ListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjects'

func (*MockS3Client_ListObjects_Call) Return

func (*MockS3Client_ListObjects_Call) Run

func (_c *MockS3Client_ListObjects_Call) Run(run func(ctx context.Context, bucket string, prefix *string, continuationToken *string)) *MockS3Client_ListObjects_Call

func (*MockS3Client_ListObjects_Call) RunAndReturn

Jump to

Keyboard shortcuts

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