storage

package
v0.0.0-...-7e1f343 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Private  = "private"
	Readable = "readable"
)

bucket type

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage Storage

func New

func New(c config.Storage) (*Storage, error)

New New

func (*Storage) AbortMultipartUpload

func (s *Storage) AbortMultipartUpload(bucket, key, uploadID string) error

AbortMultipartUpload AbortMultipartUpload

func (*Storage) CompleteMultipartUpload

func (s *Storage) CompleteMultipartUpload(bucket, key, uploadID string) error

CompleteMultipartUpload CompleteMultipartUpload

func (*Storage) CreateMultipartUpload

func (s *Storage) CreateMultipartUpload(bucket, key, contentType string) (string, error)

CreateMultipartUpload CreateMultipartUpload

func (*Storage) DeleteObject

func (s *Storage) DeleteObject(bucket, key string) error

DeleteObject DeleteObject

func (*Storage) GetObject

func (s *Storage) GetObject(bucket, key string) (io.ReadCloser, error)

GetObject GetObject

func (*Storage) GetObjectRequest

func (s *Storage) GetObjectRequest(bucket, key, disposition string, expire time.Duration) (string, error)

GetObjectRequest GetObjectRequest

func (*Storage) ListParts

func (s *Storage) ListParts(bucket, key, uploadID string) ([]*s3.Part, error)

ListParts ListParts

func (*Storage) PutObject

func (s *Storage) PutObject(bucket, key string, body io.Reader, contentType string) error

PutObject adds an object to a bucket.

func (*Storage) PutObjectRequest

func (s *Storage) PutObjectRequest(bucket, key string, expire time.Duration) (string, error)

PutObjectRequest PutObjectRequest

func (*Storage) UploadPartRequest

func (s *Storage) UploadPartRequest(bucket, key, uploadID string, partNumber int64, expire time.Duration) (string, error)

UploadPartRequest UploadPartRequest

Jump to

Keyboard shortcuts

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