mocks

package
v7.0.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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, in *s3.CopyObjectInput, opts ...func(*s3.Options)) (*s3.CopyObjectOutput, error)

CopyObject provides a mock function with given fields: ctx, in, opts

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

func (_m *Client) DeleteObject(ctx context.Context, in *s3.DeleteObjectInput, opts ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)

DeleteObject provides a mock function with given fields: ctx, in, opts

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetObject

func (_m *Client) GetObject(_a0 context.Context, _a1 *s3.GetObjectInput, _a2 ...func(*s3.Options)) (*s3.GetObjectOutput, error)

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

func (*Client) HeadBucket

func (_m *Client) HeadBucket(ctx context.Context, in *s3.HeadBucketInput, opts ...func(*s3.Options)) (*s3.HeadBucketOutput, error)

HeadBucket provides a mock function with given fields: ctx, in, opts

func (*Client) HeadObject

func (_m *Client) HeadObject(ctx context.Context, in *s3.HeadObjectInput, opts ...func(*s3.Options)) (*s3.HeadObjectOutput, error)

HeadObject provides a mock function with given fields: ctx, in, opts

func (*Client) ListObjectVersions

func (_m *Client) ListObjectVersions(ctx context.Context, in *s3.ListObjectVersionsInput, opts ...func(*s3.Options)) (*s3.ListObjectVersionsOutput, error)

ListObjectVersions provides a mock function with given fields: ctx, in, opts

func (*Client) ListObjects

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

ListObjects provides a mock function with given fields: ctx, in, opts

func (*Client) PutObject

func (_m *Client) PutObject(_a0 context.Context, _a1 *s3.PutObjectInput, _a2 ...func(*s3.Options)) (*s3.PutObjectOutput, error)

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

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, in *s3.CopyObjectInput, opts ...func(*s3.Options))) *Client_CopyObject_Call

func (*Client_CopyObject_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_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, in *s3.DeleteObjectInput, opts ...func(*s3.Options))) *Client_DeleteObject_Call

func (*Client_DeleteObject_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{}, in interface{}, opts ...interface{}) *Client_CopyObject_Call

CopyObject is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.CopyObjectInput
  • opts ...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) DeleteObject

func (_e *Client_Expecter) DeleteObject(ctx interface{}, in interface{}, opts ...interface{}) *Client_DeleteObject_Call

DeleteObject is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.DeleteObjectInput
  • opts ...func(*s3.Options)

func (*Client_Expecter) GetObject

func (_e *Client_Expecter) GetObject(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_GetObject_Call

GetObject is a helper method to define mock.On call

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

func (*Client_Expecter) HeadBucket

func (_e *Client_Expecter) HeadBucket(ctx interface{}, in interface{}, opts ...interface{}) *Client_HeadBucket_Call

HeadBucket is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.HeadBucketInput
  • opts ...func(*s3.Options)

func (*Client_Expecter) HeadObject

func (_e *Client_Expecter) HeadObject(ctx interface{}, in interface{}, opts ...interface{}) *Client_HeadObject_Call

HeadObject is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.HeadObjectInput
  • opts ...func(*s3.Options)

func (*Client_Expecter) ListObjectVersions

func (_e *Client_Expecter) ListObjectVersions(ctx interface{}, in interface{}, opts ...interface{}) *Client_ListObjectVersions_Call

ListObjectVersions is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.ListObjectVersionsInput
  • opts ...func(*s3.Options)

func (*Client_Expecter) ListObjects

func (_e *Client_Expecter) ListObjects(ctx interface{}, in interface{}, opts ...interface{}) *Client_ListObjects_Call

ListObjects is a helper method to define mock.On call

  • ctx context.Context
  • in *s3.ListObjectsInput
  • opts ...func(*s3.Options)

func (*Client_Expecter) PutObject

func (_e *Client_Expecter) PutObject(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Client_PutObject_Call

PutObject is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *s3.PutObjectInput
  • _a2 ...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(_a0 context.Context, _a1 *s3.GetObjectInput, _a2 ...func(*s3.Options))) *Client_GetObject_Call

func (*Client_GetObject_Call) RunAndReturn

type Client_HeadBucket_Call

type Client_HeadBucket_Call struct {
	*mock.Call
}

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

func (*Client_HeadBucket_Call) Return

func (*Client_HeadBucket_Call) Run

func (_c *Client_HeadBucket_Call) Run(run func(ctx context.Context, in *s3.HeadBucketInput, opts ...func(*s3.Options))) *Client_HeadBucket_Call

func (*Client_HeadBucket_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, in *s3.HeadObjectInput, opts ...func(*s3.Options))) *Client_HeadObject_Call

func (*Client_HeadObject_Call) RunAndReturn

type Client_ListObjectVersions_Call

type Client_ListObjectVersions_Call struct {
	*mock.Call
}

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

func (*Client_ListObjectVersions_Call) Return

func (*Client_ListObjectVersions_Call) Run

func (*Client_ListObjectVersions_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, in *s3.ListObjectsInput, opts ...func(*s3.Options))) *Client_ListObjects_Call

func (*Client_ListObjects_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(_a0 context.Context, _a1 *s3.PutObjectInput, _a2 ...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