awsmanager

package
v0.4.33 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type MockNeosyncAwsManagerClient

type MockNeosyncAwsManagerClient struct {
	mock.Mock
}

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 (*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

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

type MockNeosyncAwsManagerClient_GetObject_Call struct {
	*mock.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 (*MockNeosyncAwsManagerClient_GetObject_Call) Run

func (*MockNeosyncAwsManagerClient_GetObject_Call) RunAndReturn

type MockNeosyncAwsManagerClient_ListObjectsV2_Call

type MockNeosyncAwsManagerClient_ListObjectsV2_Call struct {
	*mock.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 (*MockNeosyncAwsManagerClient_ListObjectsV2_Call) Run

type MockNeosyncAwsManagerClient_NewS3Client_Call

type MockNeosyncAwsManagerClient_NewS3Client_Call struct {
	*mock.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 (*MockNeosyncAwsManagerClient_NewS3Client_Call) Run

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

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

Jump to

Keyboard shortcuts

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