s3_service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AWS API neglects to include a constant for this error code.
	ErrCodeNoSuchTagSet = "NoSuchTagSet"
)

Variables

This section is empty.

Functions

func New

func New() (sdk.StorageService, error)

New creates a new default S3 storage plugin

func NewWithClient

func NewWithClient(client s3iface.S3API) (sdk.StorageService, error)

NewWithClient creates a new S3 Storage plugin and injects the given client

Types

type S3StorageService

type S3StorageService struct {
	sdk.UnimplementedStoragePlugin
	// contains filtered or unexported fields
}

S3StorageService - Is the concrete implementation of AWS S3 for the Nitric Storage Plugin

func (*S3StorageService) Delete

func (s *S3StorageService) Delete(bucket string, key string) error

Delete - Deletes an item from a bucket

func (*S3StorageService) Read

func (s *S3StorageService) Read(bucket string, key string) ([]byte, error)

Read - Retrieves an item from a bucket

func (*S3StorageService) Write

func (s *S3StorageService) Write(bucket string, key string, object []byte) error

Write - Writes an item to a bucket

Jump to

Keyboard shortcuts

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