aws

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

go-aws-v2-interface

Go AWS SDK v2 Interfaces with Mocks.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3API added in v0.3.0

type S3API struct {
	Config *aws.Config
	Client *s3.Client
}

S3API is main struct of S3.

func (S3API) DeleteObject added in v0.3.0

func (a S3API) DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)

DeleteObject deletes object from S3.

func (S3API) DeleteObjects added in v0.3.0

func (a S3API) DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)

DeleteObjects deletes object from S3.

func (S3API) GetObject added in v0.3.0

func (a S3API) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)

GetObject gets object from S3.

func (S3API) ListObjectVersions added in v0.3.0

func (a S3API) ListObjectVersions(input *s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)

ListObjectVersions gets object versions from S3.

func (S3API) ListObjects added in v0.3.0

func (a S3API) ListObjects(input *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)

ListObjects gets object from S3.

func (S3API) PutObject added in v0.3.0

func (a S3API) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)

PutObject puts object to S3.

type S3Interface

type S3Interface interface {
	GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)
	ListObjectVersions(input *s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)
	ListObjects(input *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)
	PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
	DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
	DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)
}

S3Interface is an interface for S3API.

func NewS3API added in v0.3.0

func NewS3API(cfg aws.Config) S3Interface

NewS3API inits new S3API.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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