s3memerr

package
v0.0.0-...-a70a5c1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrCodeNotS3MemRequest                         = "NotS3MemRequest"
	ErrCodeBucketNotEmpty                          = "BucketNotEmpty"
	ErrCodeBucketAlreadyExists                     = "BucketAlreadyExists"
	ErrCodeIllegalVersioningConfigurationException = "IllegalVersioningConfigurationException"
	ErrCodeNoSuchVersion                           = "NoSuchVersion"
	ErrCodeNotImplemented                          = "NotImplemented"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	NewError(code, message string, origErr error, bucket, key, versionId *string) S3MemError
}

Factory interface for creating Error instances.

func NewFactory

func NewFactory() Factory

NewFactory Create a new default Factory for creating S3 instances

type S3MemError

type S3MemError interface {
	// Satisfy the generic error interface.
	awserr.Error

	Bucket() *string

	Key() *string

	VersionId() *string

	Convert2S3Error(key, versionId *string) s3.Error
}

func NewError

func NewError(code, message string, origErr error, bucket, key, versionId *string) S3MemError

Jump to

Keyboard shortcuts

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