Documentation ¶
Index ¶
- func IsNotFound(err error) bool
- type MockNeosyncAwsManagerClient
- func (_m *MockNeosyncAwsManagerClient) EXPECT() *MockNeosyncAwsManagerClient_Expecter
- func (_m *MockNeosyncAwsManagerClient) GetObject(ctx context.Context, s3Client *s3.Client, region *string, ...) (*s3.GetObjectOutput, error)
- func (_m *MockNeosyncAwsManagerClient) ListObjectsV2(ctx context.Context, s3Client *s3.Client, region *string, ...) (*s3.ListObjectsV2Output, error)
- func (_m *MockNeosyncAwsManagerClient) NewS3Client(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error)
- type MockNeosyncAwsManagerClient_Expecter
- func (_e *MockNeosyncAwsManagerClient_Expecter) GetObject(ctx interface{}, s3Client interface{}, region interface{}, params interface{}) *MockNeosyncAwsManagerClient_GetObject_Call
- func (_e *MockNeosyncAwsManagerClient_Expecter) ListObjectsV2(ctx interface{}, s3Client interface{}, region interface{}, params interface{}) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
- func (_e *MockNeosyncAwsManagerClient_Expecter) NewS3Client(ctx interface{}, config interface{}) *MockNeosyncAwsManagerClient_NewS3Client_Call
- type MockNeosyncAwsManagerClient_GetObject_Call
- func (_c *MockNeosyncAwsManagerClient_GetObject_Call) Return(_a0 *s3.GetObjectOutput, _a1 error) *MockNeosyncAwsManagerClient_GetObject_Call
- func (_c *MockNeosyncAwsManagerClient_GetObject_Call) Run(run func(ctx context.Context, s3Client *s3.Client, region *string, ...)) *MockNeosyncAwsManagerClient_GetObject_Call
- func (_c *MockNeosyncAwsManagerClient_GetObject_Call) RunAndReturn(...) *MockNeosyncAwsManagerClient_GetObject_Call
- type MockNeosyncAwsManagerClient_ListObjectsV2_Call
- func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) Return(_a0 *s3.ListObjectsV2Output, _a1 error) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
- func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) Run(run func(ctx context.Context, s3Client *s3.Client, region *string, ...)) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
- func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) RunAndReturn(...) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
- type MockNeosyncAwsManagerClient_NewS3Client_Call
- func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) Return(_a0 *s3.Client, _a1 error) *MockNeosyncAwsManagerClient_NewS3Client_Call
- func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) Run(run func(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig)) *MockNeosyncAwsManagerClient_NewS3Client_Call
- func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) RunAndReturn(...) *MockNeosyncAwsManagerClient_NewS3Client_Call
- type NeosyncAwsManager
- func (n *NeosyncAwsManager) GetObject(ctx context.Context, s3Client *s3.Client, region *string, ...) (*s3.GetObjectOutput, error)
- func (n *NeosyncAwsManager) ListObjectsV2(ctx context.Context, s3Client *s3.Client, region *string, ...) (*s3.ListObjectsV2Output, error)
- func (n *NeosyncAwsManager) NewS3Client(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error)
- type NeosyncAwsManagerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type MockNeosyncAwsManagerClient ¶
MockNeosyncAwsManagerClient is an autogenerated mock type for the NeosyncAwsManagerClient type
func NewMockNeosyncAwsManagerClient ¶
func NewMockNeosyncAwsManagerClient(t interface { mock.TestingT Cleanup(func()) }) *MockNeosyncAwsManagerClient
NewMockNeosyncAwsManagerClient creates a new instance of MockNeosyncAwsManagerClient. 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 (*MockNeosyncAwsManagerClient) EXPECT ¶
func (_m *MockNeosyncAwsManagerClient) EXPECT() *MockNeosyncAwsManagerClient_Expecter
func (*MockNeosyncAwsManagerClient) GetObject ¶
func (_m *MockNeosyncAwsManagerClient) GetObject(ctx context.Context, s3Client *s3.Client, region *string, params *s3.GetObjectInput) (*s3.GetObjectOutput, error)
GetObject provides a mock function with given fields: ctx, s3Client, region, params
func (*MockNeosyncAwsManagerClient) ListObjectsV2 ¶
func (_m *MockNeosyncAwsManagerClient) ListObjectsV2(ctx context.Context, s3Client *s3.Client, region *string, params *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
ListObjectsV2 provides a mock function with given fields: ctx, s3Client, region, params
func (*MockNeosyncAwsManagerClient) NewS3Client ¶
func (_m *MockNeosyncAwsManagerClient) NewS3Client(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error)
NewS3Client provides a mock function with given fields: ctx, config
type MockNeosyncAwsManagerClient_Expecter ¶
type MockNeosyncAwsManagerClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNeosyncAwsManagerClient_Expecter) GetObject ¶
func (_e *MockNeosyncAwsManagerClient_Expecter) GetObject(ctx interface{}, s3Client interface{}, region interface{}, params interface{}) *MockNeosyncAwsManagerClient_GetObject_Call
GetObject is a helper method to define mock.On call
- ctx context.Context
- s3Client *s3.Client
- region *string
- params *s3.GetObjectInput
func (*MockNeosyncAwsManagerClient_Expecter) ListObjectsV2 ¶
func (_e *MockNeosyncAwsManagerClient_Expecter) ListObjectsV2(ctx interface{}, s3Client interface{}, region interface{}, params interface{}) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
ListObjectsV2 is a helper method to define mock.On call
- ctx context.Context
- s3Client *s3.Client
- region *string
- params *s3.ListObjectsV2Input
func (*MockNeosyncAwsManagerClient_Expecter) NewS3Client ¶
func (_e *MockNeosyncAwsManagerClient_Expecter) NewS3Client(ctx interface{}, config interface{}) *MockNeosyncAwsManagerClient_NewS3Client_Call
NewS3Client is a helper method to define mock.On call
- ctx context.Context
- config *mgmtv1alpha1.AwsS3ConnectionConfig
type MockNeosyncAwsManagerClient_GetObject_Call ¶
MockNeosyncAwsManagerClient_GetObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObject'
func (*MockNeosyncAwsManagerClient_GetObject_Call) Return ¶
func (_c *MockNeosyncAwsManagerClient_GetObject_Call) Return(_a0 *s3.GetObjectOutput, _a1 error) *MockNeosyncAwsManagerClient_GetObject_Call
func (*MockNeosyncAwsManagerClient_GetObject_Call) Run ¶
func (_c *MockNeosyncAwsManagerClient_GetObject_Call) Run(run func(ctx context.Context, s3Client *s3.Client, region *string, params *s3.GetObjectInput)) *MockNeosyncAwsManagerClient_GetObject_Call
func (*MockNeosyncAwsManagerClient_GetObject_Call) RunAndReturn ¶
func (_c *MockNeosyncAwsManagerClient_GetObject_Call) RunAndReturn(run func(context.Context, *s3.Client, *string, *s3.GetObjectInput) (*s3.GetObjectOutput, error)) *MockNeosyncAwsManagerClient_GetObject_Call
type MockNeosyncAwsManagerClient_ListObjectsV2_Call ¶
MockNeosyncAwsManagerClient_ListObjectsV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjectsV2'
func (*MockNeosyncAwsManagerClient_ListObjectsV2_Call) Return ¶
func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) Return(_a0 *s3.ListObjectsV2Output, _a1 error) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
func (*MockNeosyncAwsManagerClient_ListObjectsV2_Call) Run ¶
func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) Run(run func(ctx context.Context, s3Client *s3.Client, region *string, params *s3.ListObjectsV2Input)) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
func (*MockNeosyncAwsManagerClient_ListObjectsV2_Call) RunAndReturn ¶
func (_c *MockNeosyncAwsManagerClient_ListObjectsV2_Call) RunAndReturn(run func(context.Context, *s3.Client, *string, *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)) *MockNeosyncAwsManagerClient_ListObjectsV2_Call
type MockNeosyncAwsManagerClient_NewS3Client_Call ¶
MockNeosyncAwsManagerClient_NewS3Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewS3Client'
func (*MockNeosyncAwsManagerClient_NewS3Client_Call) Return ¶
func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) Return(_a0 *s3.Client, _a1 error) *MockNeosyncAwsManagerClient_NewS3Client_Call
func (*MockNeosyncAwsManagerClient_NewS3Client_Call) Run ¶
func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) Run(run func(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig)) *MockNeosyncAwsManagerClient_NewS3Client_Call
func (*MockNeosyncAwsManagerClient_NewS3Client_Call) RunAndReturn ¶
func (_c *MockNeosyncAwsManagerClient_NewS3Client_Call) RunAndReturn(run func(context.Context, *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error)) *MockNeosyncAwsManagerClient_NewS3Client_Call
type NeosyncAwsManager ¶
type NeosyncAwsManager struct { }
func New ¶
func New() *NeosyncAwsManager
func (*NeosyncAwsManager) GetObject ¶
func (n *NeosyncAwsManager) GetObject( ctx context.Context, s3Client *s3.Client, region *string, params *s3.GetObjectInput, ) (*s3.GetObjectOutput, error)
func (*NeosyncAwsManager) ListObjectsV2 ¶
func (n *NeosyncAwsManager) ListObjectsV2( ctx context.Context, s3Client *s3.Client, region *string, params *s3.ListObjectsV2Input, ) (*s3.ListObjectsV2Output, error)
func (*NeosyncAwsManager) NewS3Client ¶
func (n *NeosyncAwsManager) NewS3Client(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error)
type NeosyncAwsManagerClient ¶
type NeosyncAwsManagerClient interface { NewS3Client(ctx context.Context, config *mgmtv1alpha1.AwsS3ConnectionConfig) (*s3.Client, error) ListObjectsV2( ctx context.Context, s3Client *s3.Client, region *string, params *s3.ListObjectsV2Input, ) (*s3.ListObjectsV2Output, error) GetObject( ctx context.Context, s3Client *s3.Client, region *string, params *s3.GetObjectInput, ) (*s3.GetObjectOutput, error) }