s3

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 4 Imported by: 0

README

AWS SDK Testify Mocks

Testify is a widely used testing framework. S3 is a widely used file store. This go library mocks the Amazon S3 SDK so you don't have to.

Usage

Same as any testify mock:

import (
   s3 "github.com/peteclark-ft/aws-testify-mocks"
)

func TestS3(t *testing.T){
   mockS3 := new(MockS3API)

   input := &GetObjectInput{...}
   output := &GetObjectOutput{...}

   mockS3.On("GetObject", input).Return(output, nil)

   // use mockS3!
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockS3API

func NewMockS3API() s3iface.S3API

Types

type MockS3API

type MockS3API struct {
	mock.Mock
}

func (*MockS3API) AbortMultipartUpload

func (m *MockS3API) AbortMultipartUpload(abort *s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error)

func (*MockS3API) AbortMultipartUploadRequest

func (m *MockS3API) AbortMultipartUploadRequest(abort *s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput)

func (*MockS3API) CompleteMultipartUpload

func (*MockS3API) CompleteMultipartUploadRequest

func (m *MockS3API) CompleteMultipartUploadRequest(c *s3.CompleteMultipartUploadInput) (*request.Request, *s3.CompleteMultipartUploadOutput)

func (*MockS3API) CopyObject

func (m *MockS3API) CopyObject(c *s3.CopyObjectInput) (*s3.CopyObjectOutput, error)

func (*MockS3API) CopyObjectRequest

func (m *MockS3API) CopyObjectRequest(c *s3.CopyObjectInput) (*request.Request, *s3.CopyObjectOutput)

func (*MockS3API) CreateBucket

func (m *MockS3API) CreateBucket(c *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)

func (*MockS3API) CreateBucketRequest

func (m *MockS3API) CreateBucketRequest(c *s3.CreateBucketInput) (*request.Request, *s3.CreateBucketOutput)

func (*MockS3API) CreateMultipartUpload

func (*MockS3API) CreateMultipartUploadRequest

func (m *MockS3API) CreateMultipartUploadRequest(c *s3.CreateMultipartUploadInput) (*request.Request, *s3.CreateMultipartUploadOutput)

func (*MockS3API) DeleteBucket

func (m *MockS3API) DeleteBucket(d *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)

func (*MockS3API) DeleteBucketCors

func (m *MockS3API) DeleteBucketCors(d *s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error)

func (*MockS3API) DeleteBucketCorsRequest

func (m *MockS3API) DeleteBucketCorsRequest(d *s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput)

func (*MockS3API) DeleteBucketLifecycle

func (*MockS3API) DeleteBucketLifecycleRequest

func (m *MockS3API) DeleteBucketLifecycleRequest(d *s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput)

func (*MockS3API) DeleteBucketPolicy

func (m *MockS3API) DeleteBucketPolicy(d *s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error)

func (*MockS3API) DeleteBucketPolicyRequest

func (m *MockS3API) DeleteBucketPolicyRequest(d *s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput)

func (*MockS3API) DeleteBucketReplication

func (*MockS3API) DeleteBucketReplicationRequest

func (m *MockS3API) DeleteBucketReplicationRequest(d *s3.DeleteBucketReplicationInput) (*request.Request, *s3.DeleteBucketReplicationOutput)

func (*MockS3API) DeleteBucketRequest

func (m *MockS3API) DeleteBucketRequest(d *s3.DeleteBucketInput) (*request.Request, *s3.DeleteBucketOutput)

func (*MockS3API) DeleteBucketTagging

func (m *MockS3API) DeleteBucketTagging(d *s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error)

func (*MockS3API) DeleteBucketTaggingRequest

func (m *MockS3API) DeleteBucketTaggingRequest(d *s3.DeleteBucketTaggingInput) (*request.Request, *s3.DeleteBucketTaggingOutput)

func (*MockS3API) DeleteBucketWebsite

func (m *MockS3API) DeleteBucketWebsite(d *s3.DeleteBucketWebsiteInput) (*s3.DeleteBucketWebsiteOutput, error)

func (*MockS3API) DeleteBucketWebsiteRequest

func (m *MockS3API) DeleteBucketWebsiteRequest(d *s3.DeleteBucketWebsiteInput) (*request.Request, *s3.DeleteBucketWebsiteOutput)

func (*MockS3API) DeleteObject

func (m *MockS3API) DeleteObject(d *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)

func (*MockS3API) DeleteObjectRequest

func (m *MockS3API) DeleteObjectRequest(d *s3.DeleteObjectInput) (*request.Request, *s3.DeleteObjectOutput)

func (*MockS3API) DeleteObjectTagging

func (m *MockS3API) DeleteObjectTagging(d *s3.DeleteObjectTaggingInput) (*s3.DeleteObjectTaggingOutput, error)

func (*MockS3API) DeleteObjectTaggingRequest

func (m *MockS3API) DeleteObjectTaggingRequest(d *s3.DeleteObjectTaggingInput) (*request.Request, *s3.DeleteObjectTaggingOutput)

func (*MockS3API) DeleteObjects

func (m *MockS3API) DeleteObjects(d *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)

func (*MockS3API) DeleteObjectsRequest

func (m *MockS3API) DeleteObjectsRequest(d *s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput)

func (*MockS3API) GetBucketAcl

func (m *MockS3API) GetBucketAcl(d *s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)

func (*MockS3API) GetBucketAclRequest

func (m *MockS3API) GetBucketAclRequest(d *s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput)

func (*MockS3API) GetBucketCors

func (m *MockS3API) GetBucketCors(g *s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error)

func (*MockS3API) GetBucketCorsRequest

func (m *MockS3API) GetBucketCorsRequest(g *s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput)

func (*MockS3API) GetBucketLifecycle

func (m *MockS3API) GetBucketLifecycle(g *s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error)

func (*MockS3API) GetBucketLifecycleRequest

func (m *MockS3API) GetBucketLifecycleRequest(g *s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput)

func (*MockS3API) GetBucketLocation

func (m *MockS3API) GetBucketLocation(g *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)

func (*MockS3API) GetBucketLocationRequest

func (m *MockS3API) GetBucketLocationRequest(g *s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput)

func (*MockS3API) GetBucketLogging

func (m *MockS3API) GetBucketLogging(g *s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)

func (*MockS3API) GetBucketLoggingRequest

func (m *MockS3API) GetBucketLoggingRequest(g *s3.GetBucketLoggingInput) (*request.Request, *s3.GetBucketLoggingOutput)

func (*MockS3API) GetBucketNotificationConfiguration

func (m *MockS3API) GetBucketNotificationConfiguration(g *s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfiguration, error)

func (*MockS3API) GetBucketPolicy

func (m *MockS3API) GetBucketPolicy(g *s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)

func (*MockS3API) GetBucketPolicyRequest

func (m *MockS3API) GetBucketPolicyRequest(g *s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput)

func (*MockS3API) GetBucketReplication

func (m *MockS3API) GetBucketReplication(g *s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error)

func (*MockS3API) GetBucketReplicationRequest

func (m *MockS3API) GetBucketReplicationRequest(g *s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput)

func (*MockS3API) GetBucketRequestPayment

func (*MockS3API) GetBucketRequestPaymentRequest

func (m *MockS3API) GetBucketRequestPaymentRequest(g *s3.GetBucketRequestPaymentInput) (*request.Request, *s3.GetBucketRequestPaymentOutput)

func (*MockS3API) GetBucketTagging

func (m *MockS3API) GetBucketTagging(g *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)

func (*MockS3API) GetBucketTaggingRequest

func (m *MockS3API) GetBucketTaggingRequest(*s3.GetBucketTaggingInput) (*request.Request, *s3.GetBucketTaggingOutput)

func (*MockS3API) GetBucketVersioning

func (m *MockS3API) GetBucketVersioning(g *s3.GetBucketVersioningInput) (*s3.GetBucketVersioningOutput, error)

func (*MockS3API) GetBucketVersioningRequest

func (m *MockS3API) GetBucketVersioningRequest(g *s3.GetBucketVersioningInput) (*request.Request, *s3.GetBucketVersioningOutput)

func (*MockS3API) GetBucketWebsite

func (m *MockS3API) GetBucketWebsite(g *s3.GetBucketWebsiteInput) (*s3.GetBucketWebsiteOutput, error)

func (*MockS3API) GetBucketWebsiteRequest

func (m *MockS3API) GetBucketWebsiteRequest(g *s3.GetBucketWebsiteInput) (*request.Request, *s3.GetBucketWebsiteOutput)

func (*MockS3API) GetObject

func (m *MockS3API) GetObject(g *s3.GetObjectInput) (*s3.GetObjectOutput, error)

func (*MockS3API) GetObjectAcl

func (m *MockS3API) GetObjectAcl(g *s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error)

func (*MockS3API) GetObjectAclRequest

func (m *MockS3API) GetObjectAclRequest(g *s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput)

func (*MockS3API) GetObjectRequest

func (m *MockS3API) GetObjectRequest(g *s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput)

func (*MockS3API) GetObjectTagging

func (m *MockS3API) GetObjectTagging(g *s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error)

func (*MockS3API) GetObjectTaggingRequest

func (m *MockS3API) GetObjectTaggingRequest(g *s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput)

func (*MockS3API) GetObjectTorrent

func (m *MockS3API) GetObjectTorrent(g *s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error)

func (*MockS3API) GetObjectTorrentRequest

func (m *MockS3API) GetObjectTorrentRequest(g *s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput)

func (*MockS3API) HeadBucket

func (m *MockS3API) HeadBucket(g *s3.HeadBucketInput) (*s3.HeadBucketOutput, error)

func (*MockS3API) HeadBucketRequest

func (m *MockS3API) HeadBucketRequest(g *s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput)

func (*MockS3API) HeadObject

func (m *MockS3API) HeadObject(h *s3.HeadObjectInput) (*s3.HeadObjectOutput, error)

func (*MockS3API) HeadObjectRequest

func (m *MockS3API) HeadObjectRequest(h *s3.HeadObjectInput) (*request.Request, *s3.HeadObjectOutput)

func (*MockS3API) ListBuckets

func (m *MockS3API) ListBuckets(l *s3.ListBucketsInput) (*s3.ListBucketsOutput, error)

func (*MockS3API) ListBucketsRequest

func (m *MockS3API) ListBucketsRequest(l *s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput)

func (*MockS3API) ListMultipartUploads

func (m *MockS3API) ListMultipartUploads(l *s3.ListMultipartUploadsInput) (*s3.ListMultipartUploadsOutput, error)

func (*MockS3API) ListMultipartUploadsPages

func (m *MockS3API) ListMultipartUploadsPages(l *s3.ListMultipartUploadsInput, f func(*s3.ListMultipartUploadsOutput, bool) bool) error

func (*MockS3API) ListMultipartUploadsRequest

func (m *MockS3API) ListMultipartUploadsRequest(l *s3.ListMultipartUploadsInput) (*request.Request, *s3.ListMultipartUploadsOutput)

func (*MockS3API) ListObjectVersions

func (m *MockS3API) ListObjectVersions(l *s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)

func (*MockS3API) ListObjectVersionsPages

func (m *MockS3API) ListObjectVersionsPages(l *s3.ListObjectVersionsInput, f func(*s3.ListObjectVersionsOutput, bool) bool) error

func (*MockS3API) ListObjectVersionsRequest

func (m *MockS3API) ListObjectVersionsRequest(l *s3.ListObjectVersionsInput) (*request.Request, *s3.ListObjectVersionsOutput)

func (*MockS3API) ListObjects

func (m *MockS3API) ListObjects(l *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)

func (*MockS3API) ListObjectsPages

func (m *MockS3API) ListObjectsPages(l *s3.ListObjectsInput, f func(*s3.ListObjectsOutput, bool) bool) error

func (*MockS3API) ListObjectsRequest

func (m *MockS3API) ListObjectsRequest(l *s3.ListObjectsInput) (*request.Request, *s3.ListObjectsOutput)

func (*MockS3API) ListObjectsV2

func (m *MockS3API) ListObjectsV2(l *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)

func (*MockS3API) ListObjectsV2Pages

func (m *MockS3API) ListObjectsV2Pages(l *s3.ListObjectsV2Input, f func(*s3.ListObjectsV2Output, bool) bool) error

func (*MockS3API) ListObjectsV2Request

func (m *MockS3API) ListObjectsV2Request(l *s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output)

func (*MockS3API) ListParts

func (m *MockS3API) ListParts(l *s3.ListPartsInput) (*s3.ListPartsOutput, error)

func (*MockS3API) ListPartsPages

func (m *MockS3API) ListPartsPages(l *s3.ListPartsInput, f func(*s3.ListPartsOutput, bool) bool) error

func (*MockS3API) ListPartsRequest

func (m *MockS3API) ListPartsRequest(l *s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput)

func (*MockS3API) PutBucketAcl

func (m *MockS3API) PutBucketAcl(p *s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error)

func (*MockS3API) PutBucketAclRequest

func (m *MockS3API) PutBucketAclRequest(p *s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput)

func (*MockS3API) PutBucketCors

func (m *MockS3API) PutBucketCors(p *s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error)

func (*MockS3API) PutBucketCorsRequest

func (m *MockS3API) PutBucketCorsRequest(p *s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput)

func (*MockS3API) PutBucketLifecycle

func (m *MockS3API) PutBucketLifecycle(p *s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error)

func (*MockS3API) PutBucketLifecycleRequest

func (m *MockS3API) PutBucketLifecycleRequest(p *s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput)

func (*MockS3API) PutBucketLogging

func (m *MockS3API) PutBucketLogging(p *s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error)

func (*MockS3API) PutBucketLoggingRequest

func (m *MockS3API) PutBucketLoggingRequest(p *s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput)

func (*MockS3API) PutBucketNotification

func (*MockS3API) PutBucketNotificationRequest

func (m *MockS3API) PutBucketNotificationRequest(p *s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput)

func (*MockS3API) PutBucketPolicy

func (m *MockS3API) PutBucketPolicy(p *s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error)

func (*MockS3API) PutBucketPolicyRequest

func (m *MockS3API) PutBucketPolicyRequest(p *s3.PutBucketPolicyInput) (*request.Request, *s3.PutBucketPolicyOutput)

func (*MockS3API) PutBucketReplication

func (m *MockS3API) PutBucketReplication(p *s3.PutBucketReplicationInput) (*s3.PutBucketReplicationOutput, error)

func (*MockS3API) PutBucketReplicationRequest

func (m *MockS3API) PutBucketReplicationRequest(p *s3.PutBucketReplicationInput) (*request.Request, *s3.PutBucketReplicationOutput)

func (*MockS3API) PutBucketRequestPayment

func (*MockS3API) PutBucketRequestPaymentRequest

func (m *MockS3API) PutBucketRequestPaymentRequest(p *s3.PutBucketRequestPaymentInput) (*request.Request, *s3.PutBucketRequestPaymentOutput)

func (*MockS3API) PutBucketTagging

func (m *MockS3API) PutBucketTagging(p *s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error)

func (*MockS3API) PutBucketTaggingRequest

func (m *MockS3API) PutBucketTaggingRequest(p *s3.PutBucketTaggingInput) (*request.Request, *s3.PutBucketTaggingOutput)

func (*MockS3API) PutBucketVersioning

func (m *MockS3API) PutBucketVersioning(p *s3.PutBucketVersioningInput) (*s3.PutBucketVersioningOutput, error)

func (*MockS3API) PutBucketVersioningRequest

func (m *MockS3API) PutBucketVersioningRequest(p *s3.PutBucketVersioningInput) (*request.Request, *s3.PutBucketVersioningOutput)

func (*MockS3API) PutBucketWebsite

func (m *MockS3API) PutBucketWebsite(p *s3.PutBucketWebsiteInput) (*s3.PutBucketWebsiteOutput, error)

func (*MockS3API) PutBucketWebsiteRequest

func (m *MockS3API) PutBucketWebsiteRequest(p *s3.PutBucketWebsiteInput) (*request.Request, *s3.PutBucketWebsiteOutput)

func (*MockS3API) PutObject

func (m *MockS3API) PutObject(p *s3.PutObjectInput) (*s3.PutObjectOutput, error)

func (*MockS3API) PutObjectAcl

func (m *MockS3API) PutObjectAcl(p *s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error)

func (*MockS3API) PutObjectAclRequest

func (m *MockS3API) PutObjectAclRequest(p *s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput)

func (*MockS3API) PutObjectRequest

func (m *MockS3API) PutObjectRequest(p *s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput)

func (*MockS3API) PutObjectTagging

func (m *MockS3API) PutObjectTagging(p *s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error)

func (*MockS3API) PutObjectTaggingRequest

func (m *MockS3API) PutObjectTaggingRequest(p *s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput)

func (*MockS3API) RestoreObject

func (m *MockS3API) RestoreObject(r *s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error)

func (*MockS3API) RestoreObjectRequest

func (m *MockS3API) RestoreObjectRequest(r *s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput)

func (*MockS3API) UploadPart

func (m *MockS3API) UploadPart(u *s3.UploadPartInput) (*s3.UploadPartOutput, error)

func (*MockS3API) UploadPartCopy

func (m *MockS3API) UploadPartCopy(input *s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error)

func (*MockS3API) UploadPartCopyRequest

func (m *MockS3API) UploadPartCopyRequest(u *s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput)

func (*MockS3API) UploadPartRequest

func (m *MockS3API) UploadPartRequest(u *s3.UploadPartInput) (*request.Request, *s3.UploadPartOutput)

func (*MockS3API) WaitUntilBucketExists

func (m *MockS3API) WaitUntilBucketExists(head *s3.HeadBucketInput) error

func (*MockS3API) WaitUntilBucketNotExists

func (m *MockS3API) WaitUntilBucketNotExists(head *s3.HeadBucketInput) error

func (*MockS3API) WaitUntilObjectExists

func (m *MockS3API) WaitUntilObjectExists(head *s3.HeadObjectInput) error

func (*MockS3API) WaitUntilObjectNotExists

func (m *MockS3API) WaitUntilObjectNotExists(head *s3.HeadObjectInput) error

Jump to

Keyboard shortcuts

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