mocks

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) AbortMultipartUpload

func (_m *Client) AbortMultipartUpload(_a0 context.Context, _a1 *s3.AbortMultipartUploadInput, _a2 ...func(*s3.Options)) (*s3.AbortMultipartUploadOutput, error)

AbortMultipartUpload provides a mock function with given fields: _a0, _a1, _a2

func (*Client) CompleteMultipartUpload

func (_m *Client) CompleteMultipartUpload(_a0 context.Context, _a1 *s3.CompleteMultipartUploadInput, _a2 ...func(*s3.Options)) (*s3.CompleteMultipartUploadOutput, error)

CompleteMultipartUpload provides a mock function with given fields: _a0, _a1, _a2

func (*Client) CopyObject

func (_m *Client) CopyObject(ctx context.Context, params *s3.CopyObjectInput, optFns ...func(*s3.Options)) (*s3.CopyObjectOutput, error)

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

func (*Client) CreateBucket

func (_m *Client) CreateBucket(ctx context.Context, params *s3.CreateBucketInput, optFns ...func(*s3.Options)) (*s3.CreateBucketOutput, error)

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

func (*Client) CreateMultipartUpload

func (_m *Client) CreateMultipartUpload(_a0 context.Context, _a1 *s3.CreateMultipartUploadInput, _a2 ...func(*s3.Options)) (*s3.CreateMultipartUploadOutput, error)

CreateMultipartUpload provides a mock function with given fields: _a0, _a1, _a2

func (*Client) DeleteBucket

func (_m *Client) DeleteBucket(ctx context.Context, params *s3.DeleteBucketInput, optFns ...func(*s3.Options)) (*s3.DeleteBucketOutput, error)

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

func (*Client) DeleteObject

func (_m *Client) 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 (*Client) DeleteObjects

func (_m *Client) 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 (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetObject

func (_m *Client) 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 (*Client) HeadObject

func (_m *Client) 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 (*Client) ListObjects

func (_m *Client) ListObjects(ctx context.Context, params *s3.ListObjectsInput, optFns ...func(*s3.Options)) (*s3.ListObjectsOutput, error)

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

func (*Client) ListObjectsV2

func (_m *Client) 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 (*Client) PutObject

func (_m *Client) 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

func (*Client) PutObjectTagging

func (_m *Client) PutObjectTagging(ctx context.Context, params *s3.PutObjectTaggingInput, optFns ...func(*s3.Options)) (*s3.PutObjectTaggingOutput, error)

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

func (*Client) UploadPart

func (_m *Client) UploadPart(_a0 context.Context, _a1 *s3.UploadPartInput, _a2 ...func(*s3.Options)) (*s3.UploadPartOutput, error)

UploadPart provides a mock function with given fields: _a0, _a1, _a2

type Client_AbortMultipartUpload_Call

type Client_AbortMultipartUpload_Call struct {
	*mock.Call
}

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

func (*Client_AbortMultipartUpload_Call) Return

func (*Client_AbortMultipartUpload_Call) Run

func (*Client_AbortMultipartUpload_Call) RunAndReturn

type Client_CompleteMultipartUpload_Call

type Client_CompleteMultipartUpload_Call struct {
	*mock.Call
}

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

func (*Client_CompleteMultipartUpload_Call) Return

func (*Client_CompleteMultipartUpload_Call) Run

type Client_CopyObject_Call

type Client_CopyObject_Call struct {
	*mock.Call
}

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

func (*Client_CopyObject_Call) Return

func (*Client_CopyObject_Call) Run

func (_c *Client_CopyObject_Call) Run(run func(ctx context.Context, params *s3.CopyObjectInput, optFns ...func(*s3.Options))) *Client_CopyObject_Call

func (*Client_CopyObject_Call) RunAndReturn

type Client_CreateBucket_Call

type Client_CreateBucket_Call struct {
	*mock.Call
}

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

func (*Client_CreateBucket_Call) Return

func (*Client_CreateBucket_Call) Run

func (_c *Client_CreateBucket_Call) Run(run func(ctx context.Context, params *s3.CreateBucketInput, optFns ...func(*s3.Options))) *Client_CreateBucket_Call

func (*Client_CreateBucket_Call) RunAndReturn

type Client_CreateMultipartUpload_Call

type Client_CreateMultipartUpload_Call struct {
	*mock.Call
}

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

func (*Client_CreateMultipartUpload_Call) Return

func (*Client_CreateMultipartUpload_Call) Run

type Client_DeleteBucket_Call

type Client_DeleteBucket_Call struct {
	*mock.Call
}

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

func (*Client_DeleteBucket_Call) Return

func (*Client_DeleteBucket_Call) Run

func (_c *Client_DeleteBucket_Call) Run(run func(ctx context.Context, params *s3.DeleteBucketInput, optFns ...func(*s3.Options))) *Client_DeleteBucket_Call

func (*Client_DeleteBucket_Call) RunAndReturn

type Client_DeleteObject_Call

type Client_DeleteObject_Call struct {
	*mock.Call
}

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

func (*Client_DeleteObject_Call) Return

func (*Client_DeleteObject_Call) Run

func (_c *Client_DeleteObject_Call) Run(run func(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options))) *Client_DeleteObject_Call

func (*Client_DeleteObject_Call) RunAndReturn

type Client_DeleteObjects_Call

type Client_DeleteObjects_Call struct {
	*mock.Call
}

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

func (*Client_DeleteObjects_Call) Return

func (*Client_DeleteObjects_Call) Run

func (_c *Client_DeleteObjects_Call) Run(run func(ctx context.Context, params *s3.DeleteObjectsInput, optFns ...func(*s3.Options))) *Client_DeleteObjects_Call

func (*Client_DeleteObjects_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) AbortMultipartUpload

func (_e *Client_Expecter) AbortMultipartUpload(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_AbortMultipartUpload_Call

AbortMultipartUpload is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *s3.AbortMultipartUploadInput
  • _a2 ...func(*s3.Options)

func (*Client_Expecter) CompleteMultipartUpload

func (_e *Client_Expecter) CompleteMultipartUpload(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_CompleteMultipartUpload_Call

CompleteMultipartUpload is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *s3.CompleteMultipartUploadInput
  • _a2 ...func(*s3.Options)

func (*Client_Expecter) CopyObject

func (_e *Client_Expecter) CopyObject(ctx interface{}, params interface{}, optFns ...interface{}) *Client_CopyObject_Call

CopyObject is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.CopyObjectInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) CreateBucket

func (_e *Client_Expecter) CreateBucket(ctx interface{}, params interface{}, optFns ...interface{}) *Client_CreateBucket_Call

CreateBucket is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.CreateBucketInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) CreateMultipartUpload

func (_e *Client_Expecter) CreateMultipartUpload(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_CreateMultipartUpload_Call

CreateMultipartUpload is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *s3.CreateMultipartUploadInput
  • _a2 ...func(*s3.Options)

func (*Client_Expecter) DeleteBucket

func (_e *Client_Expecter) DeleteBucket(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DeleteBucket_Call

DeleteBucket is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.DeleteBucketInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) DeleteObject

func (_e *Client_Expecter) DeleteObject(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DeleteObject_Call

DeleteObject is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.DeleteObjectInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) DeleteObjects

func (_e *Client_Expecter) DeleteObjects(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DeleteObjects_Call

DeleteObjects is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.DeleteObjectsInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) GetObject

func (_e *Client_Expecter) GetObject(ctx interface{}, params interface{}, optFns ...interface{}) *Client_GetObject_Call

GetObject is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.GetObjectInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) HeadObject

func (_e *Client_Expecter) HeadObject(ctx interface{}, params interface{}, optFns ...interface{}) *Client_HeadObject_Call

HeadObject is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.HeadObjectInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) ListObjects

func (_e *Client_Expecter) ListObjects(ctx interface{}, params interface{}, optFns ...interface{}) *Client_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.ListObjectsInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) ListObjectsV2

func (_e *Client_Expecter) ListObjectsV2(ctx interface{}, params interface{}, optFns ...interface{}) *Client_ListObjectsV2_Call

ListObjectsV2 is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.ListObjectsV2Input
  • optFns ...func(*s3.Options)

func (*Client_Expecter) PutObject

func (_e *Client_Expecter) PutObject(ctx interface{}, params interface{}, optFns ...interface{}) *Client_PutObject_Call

PutObject is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.PutObjectInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) PutObjectTagging

func (_e *Client_Expecter) PutObjectTagging(ctx interface{}, params interface{}, optFns ...interface{}) *Client_PutObjectTagging_Call

PutObjectTagging is a helper method to define mock.On call

  • ctx context.Context
  • params *s3.PutObjectTaggingInput
  • optFns ...func(*s3.Options)

func (*Client_Expecter) UploadPart

func (_e *Client_Expecter) UploadPart(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_UploadPart_Call

UploadPart is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *s3.UploadPartInput
  • _a2 ...func(*s3.Options)

type Client_GetObject_Call

type Client_GetObject_Call struct {
	*mock.Call
}

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

func (*Client_GetObject_Call) Return

func (*Client_GetObject_Call) Run

func (_c *Client_GetObject_Call) Run(run func(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options))) *Client_GetObject_Call

func (*Client_GetObject_Call) RunAndReturn

type Client_HeadObject_Call

type Client_HeadObject_Call struct {
	*mock.Call
}

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

func (*Client_HeadObject_Call) Return

func (*Client_HeadObject_Call) Run

func (_c *Client_HeadObject_Call) Run(run func(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options))) *Client_HeadObject_Call

func (*Client_HeadObject_Call) RunAndReturn

type Client_ListObjectsV2_Call

type Client_ListObjectsV2_Call struct {
	*mock.Call
}

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

func (*Client_ListObjectsV2_Call) Return

func (*Client_ListObjectsV2_Call) Run

func (_c *Client_ListObjectsV2_Call) Run(run func(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options))) *Client_ListObjectsV2_Call

func (*Client_ListObjectsV2_Call) RunAndReturn

type Client_ListObjects_Call

type Client_ListObjects_Call struct {
	*mock.Call
}

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

func (*Client_ListObjects_Call) Return

func (*Client_ListObjects_Call) Run

func (_c *Client_ListObjects_Call) Run(run func(ctx context.Context, params *s3.ListObjectsInput, optFns ...func(*s3.Options))) *Client_ListObjects_Call

func (*Client_ListObjects_Call) RunAndReturn

type Client_PutObjectTagging_Call

type Client_PutObjectTagging_Call struct {
	*mock.Call
}

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

func (*Client_PutObjectTagging_Call) Return

func (*Client_PutObjectTagging_Call) Run

func (*Client_PutObjectTagging_Call) RunAndReturn

type Client_PutObject_Call

type Client_PutObject_Call struct {
	*mock.Call
}

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

func (*Client_PutObject_Call) Return

func (*Client_PutObject_Call) Run

func (_c *Client_PutObject_Call) Run(run func(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options))) *Client_PutObject_Call

func (*Client_PutObject_Call) RunAndReturn

type Client_UploadPart_Call

type Client_UploadPart_Call struct {
	*mock.Call
}

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

func (*Client_UploadPart_Call) Return

func (*Client_UploadPart_Call) Run

func (_c *Client_UploadPart_Call) Run(run func(_a0 context.Context, _a1 *s3.UploadPartInput, _a2 ...func(*s3.Options))) *Client_UploadPart_Call

func (*Client_UploadPart_Call) RunAndReturn

Jump to

Keyboard shortcuts

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