Documentation ¶
Index ¶
- func GetTestBytes(size int) []byte
- type EndpointResolverFunc
- type UploadLoggingClient
- func (u *UploadLoggingClient) AbortMultipartUpload(ctx context.Context, params *s3.AbortMultipartUploadInput, ...) (*s3.AbortMultipartUploadOutput, error)
- func (u *UploadLoggingClient) CompleteMultipartUpload(ctx context.Context, params *s3.CompleteMultipartUploadInput, ...) (*s3.CompleteMultipartUploadOutput, error)
- func (u *UploadLoggingClient) CreateMultipartUpload(ctx context.Context, params *s3.CreateMultipartUploadInput, ...) (*s3.CreateMultipartUploadOutput, error)
- func (u *UploadLoggingClient) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
- func (u *UploadLoggingClient) UploadPart(ctx context.Context, params *s3.UploadPartInput, optFns ...func(*s3.Options)) (*s3.UploadPartOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestBytes ¶
GetTestBytes returns a pseudo-random []byte of length size
Types ¶
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a mock s3 endpoint resolver that wraps the given function
func (EndpointResolverFunc) ResolveEndpoint ¶
func (m EndpointResolverFunc) ResolveEndpoint(region string, options s3.EndpointResolverOptions) (aws.Endpoint, error)
ResolveEndpoint returns the results from the wrapped function.
type UploadLoggingClient ¶
type UploadLoggingClient struct { Invocations []string Params []interface{} ConsumeBody bool PutObjectFn func(*UploadLoggingClient, *s3.PutObjectInput) (*s3.PutObjectOutput, error) UploadPartFn func(*UploadLoggingClient, *s3.UploadPartInput) (*s3.UploadPartOutput, error) CreateMultipartUploadFn func(*UploadLoggingClient, *s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error) CompleteMultipartUploadFn func(*UploadLoggingClient, *s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error) AbortMultipartUploadFn func(*UploadLoggingClient, *s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error) PartNum int // contains filtered or unexported fields }
UploadLoggingClient is a mock client that can be used to record and stub responses for testing the manager.Uploader.
func NewUploadLoggingClient ¶
func NewUploadLoggingClient(ignoreOps []string) (*UploadLoggingClient, *[]string, *[]interface{})
NewUploadLoggingClient returns a new UploadLoggingClient.
func (*UploadLoggingClient) AbortMultipartUpload ¶
func (u *UploadLoggingClient) AbortMultipartUpload(ctx context.Context, params *s3.AbortMultipartUploadInput, optFns ...func(*s3.Options)) (*s3.AbortMultipartUploadOutput, error)
AbortMultipartUpload is the S3 AbortMultipartUpload API.
func (*UploadLoggingClient) CompleteMultipartUpload ¶
func (u *UploadLoggingClient) CompleteMultipartUpload(ctx context.Context, params *s3.CompleteMultipartUploadInput, optFns ...func(*s3.Options)) (*s3.CompleteMultipartUploadOutput, error)
CompleteMultipartUpload is the S3 CompleteMultipartUpload API.
func (*UploadLoggingClient) CreateMultipartUpload ¶
func (u *UploadLoggingClient) CreateMultipartUpload(ctx context.Context, params *s3.CreateMultipartUploadInput, optFns ...func(*s3.Options)) (*s3.CreateMultipartUploadOutput, error)
CreateMultipartUpload is the S3 CreateMultipartUpload API.
func (*UploadLoggingClient) PutObject ¶
func (u *UploadLoggingClient) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
PutObject is the S3 PutObject API.
func (*UploadLoggingClient) UploadPart ¶
func (u *UploadLoggingClient) UploadPart(ctx context.Context, params *s3.UploadPartInput, optFns ...func(*s3.Options)) (*s3.UploadPartOutput, error)
UploadPart is the S3 UploadPart API.
Click to show internal directories.
Click to hide internal directories.