objectstorage

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

func (*FileStorage) Reader

func (fs *FileStorage) Reader() (io.Reader, error)

func (*FileStorage) Writer

func (fs *FileStorage) Writer() (io.WriteCloser, error)

type S3Storage

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

func (*S3Storage) Reader

func (s3 *S3Storage) Reader() (io.Reader, error)

func (*S3Storage) Writer

func (s3 *S3Storage) Writer() (io.WriteCloser, error)

type S3Writer

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

func (*S3Writer) Close

func (s3w *S3Writer) Close() error

func (*S3Writer) Write

func (s3w *S3Writer) Write(data []byte) (int, error)

type StoredObject

type StoredObject interface {
	Reader() (io.Reader, error)
	Writer() (io.WriteCloser, error)
}

func GetStoredObject

func GetStoredObject(uri string) StoredObject

Jump to

Keyboard shortcuts

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