dummy

package
v0.0.0-...-597b9e4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3API

type S3API struct {
	Cmp       *s3.CreateMultipartUploadOutput
	CmpCalls  int64
	CmpErr    error
	CooErr    error
	Coo       *s3.CopyObjectOutput
	Hoo       *s3.HeadObjectOutput
	HooErr    error
	Doo       *s3.DeleteObjectOutput
	DooCalls  int64
	DooErr    error
	Upc       *s3.UploadPartCopyOutput
	UpcErr    error
	UpcCalls  int64
	Cmpu      *s3.CompleteMultipartUploadOutput
	CmpuErr   error
	CmpuCalls int64
	// contains filtered or unexported fields
}

S3API is the API struct.

func NewS3API

func NewS3API(region string, opts ...func(*S3API)) *S3API

NewS3API mocks the S3 API parts we use.

func (*S3API) CompleteMultipartUploadWithContext

func (d *S3API) CompleteMultipartUploadWithContext(ctx aws.Context, in *s3.CompleteMultipartUploadInput, opts ...request.Option) (*s3.CompleteMultipartUploadOutput, error)

CompleteMultipartUploadWithContext is a mock method.

func (*S3API) CopyObjectWithContext

func (d *S3API) CopyObjectWithContext(_ aws.Context, in *s3.CopyObjectInput, opts ...request.Option) (*s3.CopyObjectOutput, error)

CopyObjectWithContext is a mock method.

func (*S3API) CreateMultipartUploadWithContext

func (d *S3API) CreateMultipartUploadWithContext(_ aws.Context, in *s3.CreateMultipartUploadInput, ops ...request.Option) (*s3.CreateMultipartUploadOutput, error)

CreateMultipartUploadWithContext is a mock method.

func (*S3API) DeleteObjectWithContext

func (d *S3API) DeleteObjectWithContext(ctx aws.Context, in *s3.DeleteObjectInput, opts ...request.Option) (*s3.DeleteObjectOutput, error)

DeleteObjectWithContext is a mock method.

func (*S3API) HeadObjectWithContext

func (d *S3API) HeadObjectWithContext(ctx aws.Context, in *s3.HeadObjectInput, opts ...request.Option) (*s3.HeadObjectOutput, error)

HeadObjectWithContext is a mock method.

func (*S3API) Region

func (d *S3API) Region() string

Region is a mock method.

func (*S3API) UploadPartCopyWithContext

func (d *S3API) UploadPartCopyWithContext(ctx aws.Context, in *s3.UploadPartCopyInput, opts ...request.Option) (*s3.UploadPartCopyOutput, error)

UploadPartCopyWithContext is a mock method.

type SafeLogOutput

type SafeLogOutput struct {
	// contains filtered or unexported fields
}

SafeLogOutput is a goroutine safe buffer for capturing log output.

func NewLogOutput

func NewLogOutput(out chan string) *SafeLogOutput

NewLogOutput returns a constructed SafeLogOuput and sets log output to it.

func (*SafeLogOutput) Reset

func (s *SafeLogOutput) Reset()

Reset returns the log output to stderr

func (*SafeLogOutput) Write

func (s *SafeLogOutput) Write(p []byte) (int, error)

Write writes the bytes to the buffer while locked.

Jump to

Keyboard shortcuts

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