package mock

import "github.com/aws/aws-sdk-go-v2/aws/retry/internal/mock"

Index

Functions

func LoadDefaultConfig

func LoadDefaultConfig(context.Context, ...func()) (cfg aws.Config, err error)

LoadDefaultConfig is a mock for config.LoadDefaultConfig

func WithRetryer

func WithRetryer(v func() aws.Retryer) (f func())

WithRetryer is a mock for config.WithRetryer

Types

type Client

type Client struct{}

Client is a mock service client

func NewFromConfig

func NewFromConfig(aws.Config, ...func(options *Options)) Client

NewFromConfig is a mock client constructor

func (Client) GetObject

func (Client) GetObject(context.Context, *GetObjectInput, ...func(*Options)) (o *GetObjectOutput, err error)

GetObject is a mock GetObject API

type GetObjectInput

type GetObjectInput struct {
	Bucket *string
	Key    *string
}

GetObjectInput is mock input

type GetObjectOutput

type GetObjectOutput struct{}

GetObjectOutput is mock output

type NoSuchBucketException

type NoSuchBucketException struct{}

NoSuchBucketException is a mock error

func (*NoSuchBucketException) Error

func (*NoSuchBucketException) Error() string

Error is a mock error message

func (*NoSuchBucketException) ErrorCode

func (*NoSuchBucketException) ErrorCode() string

ErrorCode is a mock error code

type Options

type Options struct {
	Retryer aws.Retryer
}

Options is a mock client Options

Source Files

client.go config.go types.go

Version
v1.6.0
Published
May 20, 2021
Platform
js/wasm
Imports
2 packages
Last checked
12 minutes ago

Tools for package owners.