Documentation ¶
Index ¶
- type MockS3Client
- func (_m *MockS3Client) DeleteObjects(ctx context.Context, bucket string, keys []string) error
- func (_m *MockS3Client) DownloadObject(ctx context.Context, bucket string, key string, buf []byte) (int64, error)
- func (_m *MockS3Client) EXPECT() *MockS3Client_Expecter
- func (_m *MockS3Client) ListObjects(ctx context.Context, bucket string, prefix *string, continuationToken *string) ([]*aws.ObjectInfo, *string, error)
- type MockS3Client_DeleteObjects_Call
- func (_c *MockS3Client_DeleteObjects_Call) Return(_a0 error) *MockS3Client_DeleteObjects_Call
- func (_c *MockS3Client_DeleteObjects_Call) Run(run func(ctx context.Context, bucket string, keys []string)) *MockS3Client_DeleteObjects_Call
- func (_c *MockS3Client_DeleteObjects_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockS3Client_DeleteObjects_Call
- type MockS3Client_DownloadObject_Call
- func (_c *MockS3Client_DownloadObject_Call) Return(_a0 int64, _a1 error) *MockS3Client_DownloadObject_Call
- func (_c *MockS3Client_DownloadObject_Call) Run(run func(ctx context.Context, bucket string, key string, buf []byte)) *MockS3Client_DownloadObject_Call
- func (_c *MockS3Client_DownloadObject_Call) RunAndReturn(run func(context.Context, string, string, []byte) (int64, error)) *MockS3Client_DownloadObject_Call
- type MockS3Client_Expecter
- func (_e *MockS3Client_Expecter) DeleteObjects(ctx interface{}, bucket interface{}, keys interface{}) *MockS3Client_DeleteObjects_Call
- func (_e *MockS3Client_Expecter) DownloadObject(ctx interface{}, bucket interface{}, key interface{}, buf interface{}) *MockS3Client_DownloadObject_Call
- func (_e *MockS3Client_Expecter) ListObjects(ctx interface{}, bucket interface{}, prefix interface{}, ...) *MockS3Client_ListObjects_Call
- type MockS3Client_ListObjects_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockS3Client ¶
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 ¶
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 ¶
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 (_c *MockS3Client_DeleteObjects_Call) Return(_a0 error) *MockS3Client_DeleteObjects_Call
func (*MockS3Client_DeleteObjects_Call) Run ¶
func (_c *MockS3Client_DeleteObjects_Call) Run(run func(ctx context.Context, bucket string, keys []string)) *MockS3Client_DeleteObjects_Call
func (*MockS3Client_DeleteObjects_Call) RunAndReturn ¶
func (_c *MockS3Client_DeleteObjects_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockS3Client_DeleteObjects_Call
type MockS3Client_DownloadObject_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 (_c *MockS3Client_DownloadObject_Call) Return(_a0 int64, _a1 error) *MockS3Client_DownloadObject_Call
func (*MockS3Client_DownloadObject_Call) Run ¶
func (_c *MockS3Client_DownloadObject_Call) Run(run func(ctx context.Context, bucket string, key string, buf []byte)) *MockS3Client_DownloadObject_Call
func (*MockS3Client_DownloadObject_Call) RunAndReturn ¶
func (_c *MockS3Client_DownloadObject_Call) RunAndReturn(run func(context.Context, string, string, []byte) (int64, error)) *MockS3Client_DownloadObject_Call
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 ¶
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 (_c *MockS3Client_ListObjects_Call) Return(_a0 []*aws.ObjectInfo, _a1 *string, _a2 error) *MockS3Client_ListObjects_Call
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 ¶
func (_c *MockS3Client_ListObjects_Call) RunAndReturn(run func(context.Context, string, *string, *string) ([]*aws.ObjectInfo, *string, error)) *MockS3Client_ListObjects_Call