Documentation ¶
Index ¶
- type CopyObjectParams
- type DeleteObjectParams
- type FileStorage
- func (s *FileStorage) Copy(src, dst media.Path) error
- func (s *FileStorage) Delete(p media.Path) error
- func (s *FileStorage) Download(p media.Path) (*media.DownloadResult, error)
- func (s *FileStorage) DownloadMultiple(paths []media.Path) ([]*media.DownloadResult, error)
- func (s *FileStorage) Get(p media.Path) (*media.FileInfo, error)
- func (s *FileStorage) GetMultiple(p media.Path) ([]media.FileInfo, error)
- func (s *FileStorage) Move(src, dst media.Path) error
- func (s *FileStorage) SpaceUsage() (int64, error)
- func (s *FileStorage) Upload(in media.UploadInput) error
- type FileStorageConfig
- type GetObjectParams
- type ListObjectsParams
- type MoveObjectParams
- type PutObjectParams
- type S3
- func (s *S3) CopyObject(p CopyObjectParams) error
- func (s *S3) DeleteObject(p DeleteObjectParams) error
- func (s *S3) DownloadObject(p GetObjectParams) (io.ReadCloser, *string, *int64, error)
- func (s *S3) GetObject(p GetObjectParams) (*S3Object, error)
- func (s *S3) ListObjects(p ListObjectsParams) ([]S3Object, error)
- func (s *S3) PutObject(p PutObjectParams) error
- func (s *S3) RenameObject(p MoveObjectParams) error
- type S3Config
- type S3Object
- type SpaceUsageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CopyObjectParams ¶
type DeleteObjectParams ¶
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
func NewFileStorage ¶
func NewFileStorage(c FileStorageConfig) *FileStorage
func (*FileStorage) Download ¶
func (s *FileStorage) Download(p media.Path) (*media.DownloadResult, error)
func (*FileStorage) DownloadMultiple ¶
func (s *FileStorage) DownloadMultiple(paths []media.Path) ([]*media.DownloadResult, error)
func (*FileStorage) GetMultiple ¶
func (*FileStorage) SpaceUsage ¶
func (s *FileStorage) SpaceUsage() (int64, error)
func (*FileStorage) Upload ¶
func (s *FileStorage) Upload(in media.UploadInput) error
type FileStorageConfig ¶
type GetObjectParams ¶
type ListObjectsParams ¶
type MoveObjectParams ¶
type PutObjectParams ¶
type S3 ¶
type S3 struct { S3Config // contains filtered or unexported fields }
func (*S3) CopyObject ¶
func (s *S3) CopyObject(p CopyObjectParams) error
func (*S3) DeleteObject ¶
func (s *S3) DeleteObject(p DeleteObjectParams) error
func (*S3) DownloadObject ¶
func (s *S3) DownloadObject(p GetObjectParams) (io.ReadCloser, *string, *int64, error)
func (*S3) ListObjects ¶
func (s *S3) ListObjects(p ListObjectsParams) ([]S3Object, error)
func (*S3) PutObject ¶
func (s *S3) PutObject(p PutObjectParams) error
func (*S3) RenameObject ¶
func (s *S3) RenameObject(p MoveObjectParams) error
type SpaceUsageParams ¶
Click to show internal directories.
Click to hide internal directories.