test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBucket

func RandomBucket() string

Types

type API

type API struct {
	S3Invocations        int
	S3Stub               func() awsSdkGoServiceS3S3iface.S3API
	S3Outputs            []awsSdkGoServiceS3S3iface.S3API
	S3Output             *awsSdkGoServiceS3S3iface.S3API
	S3ManagerInvocations int
	S3ManagerStub        func() aws.S3Manager
	S3ManagerOutputs     []aws.S3Manager
	S3ManagerOutput      *aws.S3Manager
}

func NewAPI

func NewAPI() *API

func (*API) AssertOutputsEmpty

func (a *API) AssertOutputsEmpty()

func (*API) S3

func (*API) S3Manager added in v1.31.0

func (a *API) S3Manager() aws.S3Manager

func (*API) SetS3ManagerOutput added in v1.31.0

func (a *API) SetS3ManagerOutput(output aws.S3Manager)

func (*API) SetS3Output added in v1.31.0

func (a *API) SetS3Output(output awsSdkGoServiceS3S3iface.S3API)

type BatchDeleteIterator added in v1.31.0

type BatchDeleteIterator struct {
	NextInvocations         int
	NextStub                func() bool
	NextOutputs             []bool
	NextOutput              *bool
	ErrInvocations          int
	ErrStub                 func() error
	ErrOutputs              []error
	ErrOutput               *error
	DeleteObjectInvocations int
	DeleteObjectStub        func() awsSdkGoServiceS3S3manager.BatchDeleteObject
	DeleteObjectOutputs     []awsSdkGoServiceS3S3manager.BatchDeleteObject
	DeleteObjectOutput      *awsSdkGoServiceS3S3manager.BatchDeleteObject
}

func NewBatchDeleteIterator added in v1.31.0

func NewBatchDeleteIterator() *BatchDeleteIterator

func (*BatchDeleteIterator) AssertOutputsEmpty added in v1.31.0

func (b *BatchDeleteIterator) AssertOutputsEmpty()

func (*BatchDeleteIterator) DeleteObject added in v1.31.0

func (*BatchDeleteIterator) Err added in v1.31.0

func (b *BatchDeleteIterator) Err() error

func (*BatchDeleteIterator) Next added in v1.31.0

func (b *BatchDeleteIterator) Next() bool

func (*BatchDeleteIterator) SetDeleteObjectOutput added in v1.31.0

func (b *BatchDeleteIterator) SetDeleteObjectOutput(output awsSdkGoServiceS3S3manager.BatchDeleteObject)

func (*BatchDeleteIterator) SetErrOutput added in v1.31.0

func (b *BatchDeleteIterator) SetErrOutput(output error)

func (*BatchDeleteIterator) SetNextOutput added in v1.31.0

func (b *BatchDeleteIterator) SetNextOutput(output bool)

type BatchDeleteWithClient added in v1.31.0

type BatchDeleteWithClient struct {
	DeleteInvocations int
	DeleteInputs      []awsSdkGoServiceS3S3manager.BatchDeleteIterator
	DeleteStub        func(ctx awsSdkGoAws.Context, batchDeleteIterator awsSdkGoServiceS3S3manager.BatchDeleteIterator) error
	DeleteOutputs     []error
	DeleteOutput      *error
}

func NewBatchDeleteWithClient added in v1.31.0

func NewBatchDeleteWithClient() *BatchDeleteWithClient

func (*BatchDeleteWithClient) AssertOutputsEmpty added in v1.31.0

func (b *BatchDeleteWithClient) AssertOutputsEmpty()

func (*BatchDeleteWithClient) Delete added in v1.31.0

func (*BatchDeleteWithClient) SetDeleteOutput added in v1.31.0

func (b *BatchDeleteWithClient) SetDeleteOutput(output error)

type DeleteObjectWithContextInput

type DeleteObjectWithContextInput struct {
	Input   *awsSdkGoServiceS3.DeleteObjectInput
	Options []awsSdkGoAwsRequest.Option
}

type DeleteObjectWithContextOutput

type DeleteObjectWithContextOutput struct {
	Output *awsSdkGoServiceS3.DeleteObjectOutput
	Error  error
}

type DownloadWithContextInput

type DownloadWithContextInput struct {
	WriterAt io.WriterAt
	Input    *awsSdkGoServiceS3.GetObjectInput
	Options  []func(*awsSdkGoServiceS3S3manager.Downloader)
}

type DownloadWithContextOutput

type DownloadWithContextOutput struct {
	BytesWritten int64
	Error        error
}

type Downloader added in v1.31.0

type Downloader struct {
	awsSdkGoServiceS3S3managerS3manageriface.DownloaderAPI

	DownloadWithContextInvocations int
	DownloadWithContextInputs      []DownloadWithContextInput
	DownloadWithContextStub        func(ctx awsSdkGoAws.Context, writerAt io.WriterAt, input *awsSdkGoServiceS3.GetObjectInput, options ...func(*awsSdkGoServiceS3S3manager.Downloader)) (int64, error)
	DownloadWithContextOutputs     []DownloadWithContextOutput
	DownloadWithContextOutput      *DownloadWithContextOutput
}

func NewDownloader added in v1.31.0

func NewDownloader() *Downloader

func (*Downloader) AssertOutputsEmpty added in v1.31.0

func (d *Downloader) AssertOutputsEmpty()

func (*Downloader) DownloadWithContext added in v1.31.0

func (d *Downloader) DownloadWithContext(ctx awsSdkGoAws.Context, writerAt io.WriterAt, input *awsSdkGoServiceS3.GetObjectInput, options ...func(*awsSdkGoServiceS3S3manager.Downloader)) (int64, error)

func (*Downloader) SetDownloadWithContextOutput added in v1.31.0

func (d *Downloader) SetDownloadWithContextOutput(output DownloadWithContextOutput)

type HeadObjectWithContextInput

type HeadObjectWithContextInput struct {
	Input   *awsSdkGoServiceS3.HeadObjectInput
	Options []awsSdkGoAwsRequest.Option
}

type HeadObjectWithContextOutput

type HeadObjectWithContextOutput struct {
	Output *awsSdkGoServiceS3.HeadObjectOutput
	Error  error
}

type NewDeleteListIteratorInput added in v1.31.0

type NewDeleteListIteratorInput struct {
	ListObjectsInput *awsSdkGoServiceS3.ListObjectsInput
	Options          []func(*awsSdkGoServiceS3S3manager.DeleteListIterator)
}

type S3

type S3 struct {
	awsSdkGoServiceS3S3iface.S3API

	HeadObjectWithContextInvocations   int
	HeadObjectWithContextInputs        []HeadObjectWithContextInput
	HeadObjectWithContextStub          func(ctx awsSdkGoAws.Context, input *awsSdkGoServiceS3.HeadObjectInput, options ...awsSdkGoAwsRequest.Option) (*awsSdkGoServiceS3.HeadObjectOutput, error)
	HeadObjectWithContextOutputs       []HeadObjectWithContextOutput
	HeadObjectWithContextOutput        *HeadObjectWithContextOutput
	DeleteObjectWithContextInvocations int
	DeleteObjectWithContextInputs      []DeleteObjectWithContextInput
	DeleteObjectWithContextStub        func(ctx awsSdkGoAws.Context, input *awsSdkGoServiceS3.DeleteObjectInput, options ...awsSdkGoAwsRequest.Option) (*awsSdkGoServiceS3.DeleteObjectOutput, error)
	DeleteObjectWithContextOutputs     []DeleteObjectWithContextOutput
	DeleteObjectWithContextOutput      *DeleteObjectWithContextOutput
}

func NewS3

func NewS3() *S3

func (*S3) AssertOutputsEmpty

func (s *S3) AssertOutputsEmpty()

func (*S3) SetDeleteObjectWithContextOutput added in v1.31.0

func (s *S3) SetDeleteObjectWithContextOutput(output DeleteObjectWithContextOutput)

func (*S3) SetHeadObjectWithContextOutput added in v1.31.0

func (s *S3) SetHeadObjectWithContextOutput(output HeadObjectWithContextOutput)

type S3Manager

type S3Manager struct {
	DownloaderInvocations               int
	DownloaderStub                      func() awsSdkGoServiceS3S3managerS3manageriface.DownloaderAPI
	DownloaderOutputs                   []awsSdkGoServiceS3S3managerS3manageriface.DownloaderAPI
	DownloaderOutput                    *awsSdkGoServiceS3S3managerS3manageriface.DownloaderAPI
	UploaderInvocations                 int
	UploaderStub                        func() awsSdkGoServiceS3S3managerS3manageriface.UploaderAPI
	UploaderOutputs                     []awsSdkGoServiceS3S3managerS3manageriface.UploaderAPI
	UploaderOutput                      *awsSdkGoServiceS3S3managerS3manageriface.UploaderAPI
	NewBatchDeleteWithClientInvocations int
	NewBatchDeleteWithClientInputs      [][]func(*awsSdkGoServiceS3S3manager.BatchDelete)
	NewBatchDeleteWithClientStub        func(options ...func(*awsSdkGoServiceS3S3manager.BatchDelete)) *awsSdkGoServiceS3S3manager.BatchDelete
	NewBatchDeleteWithClientOutputs     []aws.BatchDeleteWithClient
	NewBatchDeleteWithClientOutput      *aws.BatchDeleteWithClient
	NewDeleteListIteratorInvocations    int
	NewDeleteListIteratorInputs         []NewDeleteListIteratorInput
	NewDeleteListIteratorStub           func(listObjectsInput *awsSdkGoServiceS3.ListObjectsInput, options ...func(*awsSdkGoServiceS3S3manager.DeleteListIterator)) awsSdkGoServiceS3S3manager.BatchDeleteIterator
	NewDeleteListIteratorOutputs        []awsSdkGoServiceS3S3manager.BatchDeleteIterator
	NewDeleteListIteratorOutput         *awsSdkGoServiceS3S3manager.BatchDeleteIterator
}

func NewS3Manager

func NewS3Manager() *S3Manager

func (*S3Manager) AssertOutputsEmpty

func (s *S3Manager) AssertOutputsEmpty()

func (*S3Manager) Downloader added in v1.31.0

func (*S3Manager) NewBatchDeleteWithClient added in v1.31.0

func (s *S3Manager) NewBatchDeleteWithClient(options ...func(*awsSdkGoServiceS3S3manager.BatchDelete)) aws.BatchDeleteWithClient

func (*S3Manager) NewDeleteListIterator added in v1.31.0

func (*S3Manager) SetDownloaderOutput added in v1.31.0

func (s *S3Manager) SetDownloaderOutput(output awsSdkGoServiceS3S3managerS3manageriface.DownloaderAPI)

func (*S3Manager) SetNewBatchDeleteWithClientOutput added in v1.31.0

func (s *S3Manager) SetNewBatchDeleteWithClientOutput(output aws.BatchDeleteWithClient)

func (*S3Manager) SetNewDeleteListIteratorOutput added in v1.31.0

func (s *S3Manager) SetNewDeleteListIteratorOutput(output awsSdkGoServiceS3S3manager.BatchDeleteIterator)

func (*S3Manager) SetUploaderOutput added in v1.31.0

func (s *S3Manager) SetUploaderOutput(output awsSdkGoServiceS3S3managerS3manageriface.UploaderAPI)

func (*S3Manager) Uploader added in v1.31.0

type UploadWithContextInput

type UploadWithContextInput struct {
	Input   *awsSdkGoServiceS3S3manager.UploadInput
	Options []func(*awsSdkGoServiceS3S3manager.Uploader)
}

type UploadWithContextOutput

type UploadWithContextOutput struct {
	Output *awsSdkGoServiceS3S3manager.UploadOutput
	Error  error
}

type Uploader added in v1.31.0

type Uploader struct {
	awsSdkGoServiceS3S3managerS3manageriface.UploaderAPI

	UploadWithContextInvocations int
	UploadWithContextInputs      []UploadWithContextInput
	UploadWithContextStub        func(ctx awsSdkGoAws.Context, input *awsSdkGoServiceS3S3manager.UploadInput, options ...func(*awsSdkGoServiceS3S3manager.Uploader)) (*awsSdkGoServiceS3S3manager.UploadOutput, error)
	UploadWithContextOutputs     []UploadWithContextOutput
	UploadWithContextOutput      *UploadWithContextOutput
}

func NewUploader added in v1.31.0

func NewUploader() *Uploader

func (*Uploader) AssertOutputsEmpty added in v1.31.0

func (u *Uploader) AssertOutputsEmpty()

func (*Uploader) SetUploadWithContextOutput added in v1.31.0

func (u *Uploader) SetUploadWithContextOutput(output UploadWithContextOutput)

func (*Uploader) UploadWithContext added in v1.31.0

Jump to

Keyboard shortcuts

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