File: client.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (34 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package mock

import (
	"context"

	"github.com/aws/aws-sdk-go-v2/aws"
)

// Options is a mock client Options
type Options struct {
	Retryer aws.Retryer
}

// Client is a mock service client
type Client struct{}

// GetObjectInput is mock input
type GetObjectInput struct {
	Bucket *string
	Key    *string
}

// GetObjectOutput is mock output
type GetObjectOutput struct{}

// NewFromConfig is a mock client constructor
func NewFromConfig(aws.Config, ...func(options *Options)) Client {
	return Client{}
}

// GetObject is a mock GetObject API
func (Client) GetObject(context.Context, *GetObjectInput, ...func(*Options)) (o *GetObjectOutput, err error) {
	return o, err
}