awss3v1

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

Package awss3v1 provides s3iot.Uploader with aws-sdk-go (v1).

Index

Constants

This section is empty.

Variables

View Source
var DefaultThrottleWait = 5 * time.Second

DefaultThrottleWait is a default wait duration on throttle.

Functions

func NewAPI

func NewAPI(api s3iface.S3API) s3api.S3API

NewAPI wraps s3iface.S3API to s3api.S3API.

func NewAWSSDKDownloader added in v0.0.4

func NewAWSSDKDownloader(u s3manageriface.DownloaderAPI) s3iotiface.Downloader

NewAWSSDKDownloader wraps aws-sdk-go s3manager as s3iotiface.Downloader. Some fields of download status and result is not provided. Pause/resume feature is unavailable.

func NewAWSSDKUploader added in v0.0.4

func NewAWSSDKUploader(u s3manageriface.UploaderAPI) s3iotiface.Uploader

NewAWSSDKUploader wraps aws-sdk-go s3manager as s3iotiface.Uploader. Some fields of download status and result is not provided. Pause/resume feature is unavailable.

func NewDownloader

func NewDownloader(c client.ConfigProvider, opts ...s3iot.DownloaderOption) *s3iot.Downloader

NewDownloader creates s3iot.Downloader from aws-sdk-go ConfigProvider (like Session).

func NewUploader

func NewUploader(c client.ConfigProvider, opts ...s3iot.UploaderOption) *s3iot.Uploader

NewUploader creates s3iot.Uploader from aws-sdk-go ConfigProvider (like Session).

Types

type ErrorClassifier

type ErrorClassifier struct {
	ThrottleWait time.Duration
}

ErrorClassifier classifies aws-sdk-go (v1) errors.

func (ErrorClassifier) IsRetryable

func (ErrorClassifier) IsRetryable(err error) bool

IsRetryable implements ErrorClassifier.

func (ErrorClassifier) IsThrottle

func (c ErrorClassifier) IsThrottle(err error) (time.Duration, bool)

IsThrottle implements ErrorClassifier.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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