storage

package
v0.0.0-...-5cd5cfe Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketSelector

type BucketSelector = func(nitricName string) (*string, error)

type S3StorageService

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

S3StorageService - an AWS S3 implementation of the Nitric Storage Service

func New

New creates a new default S3 storage plugin

func NewWithClient

func NewWithClient(provider resource.AwsResourceProvider, client s3iface.S3API, preSignClient s3iface.PreSignAPI, opts ...S3StorageServiceOption) (*S3StorageService, error)

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

func (*S3StorageService) Delete

Delete a file from a bucket

func (*S3StorageService) Exists

func (*S3StorageService) ListBlobs

ListFiles lists all files in a bucket

func (*S3StorageService) PreSignUrl

PreSignUrl generates a signed URL which can be used to perform direct operations on a file useful for large file uploads/downloads so they can bypass application code and work directly with S3

func (*S3StorageService) Read

Read and return the contents of a file in a bucket

func (*S3StorageService) Write

Write contents to a file in a bucket

type S3StorageServiceOption

type S3StorageServiceOption interface {
	Apply(*S3StorageService)
}

func WithSelector

func WithSelector(selector BucketSelector) S3StorageServiceOption

Jump to

Keyboard shortcuts

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