mock

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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