s3

package
v0.0.0-...-c83230f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetObject(bucket string, key string) (*s3.GetObjectOutput, error)
}

func NewClient

func NewClient(ses *session.Session, conf *Config) Client

type Config

type Config struct {
	IsMock bool
	Region string
}

type DefaultClient

type DefaultClient struct {
	// contains filtered or unexported fields
}

func (DefaultClient) GetObject

func (c DefaultClient) GetObject(bucket string, key string) (*s3.GetObjectOutput, error)

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) GetObject

func (_m *MockClient) GetObject(bucket string, key string) (*s3.GetObjectOutput, error)

Jump to

Keyboard shortcuts

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