stubs

package
v0.0.0-...-ba09527 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package stubs defines service action stubs that are used by the scenario unit tests.

Each stub expects specific data as input and returns specific data as an output. If an error is specified, it is raised by the stubber.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StubCompleteMultipartUpload

func StubCompleteMultipartUpload(bucketName string, objectKey string, uploadId string,
	partNumbers []int32, raiseErr *testtools.StubError) testtools.Stub

func StubCopyObject

func StubCopyObject(bucketSource string, objectSource string, bucketDest string, objectDest string,
	raiseErr *testtools.StubError) testtools.Stub

func StubCreateBucket

func StubCreateBucket(bucketName string, region string, raiseErr *testtools.StubError) testtools.Stub

func StubCreateMultipartUpload

func StubCreateMultipartUpload(bucketName string, objectKey string, uploadId string,
	raiseErr *testtools.StubError) testtools.Stub

func StubDeleteBucket

func StubDeleteBucket(bucketName string, raiseErr *testtools.StubError) testtools.Stub

func StubDeleteObjects

func StubDeleteObjects(bucketName string, keys []string, raiseErr *testtools.StubError) testtools.Stub

func StubGetObject

func StubGetObject(bucketName string, objectKey string, byteRange *string, body io.ReadCloser, raiseErr *testtools.StubError) testtools.Stub

func StubHeadBucket

func StubHeadBucket(bucketName string, raiseErr *testtools.StubError) testtools.Stub

func StubListBuckets

func StubListBuckets(buckets []types.Bucket, raiseErr *testtools.StubError) testtools.Stub

func StubListObjectsV2

func StubListObjectsV2(bucketName string, keys []string, raiseErr *testtools.StubError) testtools.Stub

func StubPresignedRequest

func StubPresignedRequest(method string, bucketName string, objectKey string, raiseErr *testtools.StubError) testtools.Stub

func StubPutObject

func StubPutObject(bucketName string, objectKey string, raiseErr *testtools.StubError) testtools.Stub

func StubUploadPart

func StubUploadPart(bucketName string, objectKey string, uploadId string,
	raiseErr *testtools.StubError) testtools.Stub

Types

This section is empty.

Jump to

Keyboard shortcuts

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