Documentation ¶
Index ¶
- Constants
- func New() (storage.StorageService, error)
- func NewWithClient(client s3iface.S3API) (storage.StorageService, error)
- type S3StorageService
- func (s *S3StorageService) Delete(bucket string, key string) error
- func (s *S3StorageService) PreSignUrl(bucket string, key string, operation storage.Operation, expiry uint32) (string, error)
- func (s *S3StorageService) Read(bucket string, key string) ([]byte, error)
- func (s *S3StorageService) Write(bucket string, key string, object []byte) error
Constants ¶
View Source
const (
// ErrCodeNoSuchTagSet - AWS API neglects to include a constant for this error code.
ErrCodeNoSuchTagSet = "NoSuchTagSet"
)
Variables ¶
This section is empty.
Functions ¶
func NewWithClient ¶
func NewWithClient(client s3iface.S3API) (storage.StorageService, error)
NewWithClient creates a new S3 Storage plugin and injects the given client
Types ¶
type S3StorageService ¶
type S3StorageService struct {
// 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) PreSignUrl ¶ added in v0.12.0
func (s *S3StorageService) PreSignUrl(bucket string, key string, operation storage.Operation, expiry uint32) (string, error)
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
Click to show internal directories.
Click to hide internal directories.