Documentation
¶
Index ¶
- Variables
- type Config
- type FilesystemStorage
- func (storage *FilesystemStorage) BasePath() string
- func (storage *FilesystemStorage) CopyObject(ctx context.Context, from string, to string) (err error)
- func (storage *FilesystemStorage) DeleteObject(ctx context.Context, key string) (err error)
- func (storage *FilesystemStorage) DeleteObjectsWithPrefix(ctx context.Context, prefix string) (err error)
- func (storage *FilesystemStorage) GetObject(ctx context.Context, key string) (file io.ReadCloser, err error)
- func (storage *FilesystemStorage) GetObjectSize(ctx context.Context, key string) (ret int64, err error)
- func (storage *FilesystemStorage) PutObject(ctx context.Context, key string, contentType string, size int64, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyIsNotValid = errors.New("storage key is not valid") ErrPrefixIsNotValid = errors.New("storage prefix is not valid") )
Functions ¶
This section is empty.
Types ¶
type FilesystemStorage ¶
type FilesystemStorage struct {
// contains filtered or unexported fields
}
func NewFilesystemStorage ¶
func NewFilesystemStorage(config Config) *FilesystemStorage
func (*FilesystemStorage) BasePath ¶
func (storage *FilesystemStorage) BasePath() string
func (*FilesystemStorage) CopyObject ¶
func (*FilesystemStorage) DeleteObject ¶
func (storage *FilesystemStorage) DeleteObject(ctx context.Context, key string) (err error)
func (*FilesystemStorage) DeleteObjectsWithPrefix ¶
func (storage *FilesystemStorage) DeleteObjectsWithPrefix(ctx context.Context, prefix string) (err error)
func (*FilesystemStorage) GetObject ¶
func (storage *FilesystemStorage) GetObject(ctx context.Context, key string) (file io.ReadCloser, err error)
func (*FilesystemStorage) GetObjectSize ¶
Click to show internal directories.
Click to hide internal directories.