Documentation ¶
Index ¶
- type ApiKeyStorage
- 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.DownloadResponse, error)
- func (s *FileStorage) DownloadArchive(paths []media.Path) (media.Body, error)
- func (s *FileStorage) Move(src, dst media.Path) error
- func (s *FileStorage) ReadMany(p media.Path) ([]media.FileInfo, error)
- func (s *FileStorage) ReadOne(p media.Path) (*media.FileInfo, error)
- func (s *FileStorage) SpaceUsage() (float64, error)
- func (s *FileStorage) Upload(in media.UploadInput) error
- type FileStorageConfig
- type NamedTransformationStorage
- func (s *NamedTransformationStorage) Delete(name string) error
- func (s *NamedTransformationStorage) DeleteAll() error
- func (s *NamedTransformationStorage) Get(name string) (*transformation.NamedTransformation, error)
- func (s *NamedTransformationStorage) GetAll() (transformation.NamedTransformations, error)
- func (s *NamedTransformationStorage) Save(namedTransformation transformation.NamedTransformation) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyStorage ¶
type ApiKeyStorage struct {
// contains filtered or unexported fields
}
func NewApiKeyStorage ¶
func NewApiKeyStorage() *ApiKeyStorage
func (*ApiKeyStorage) Delete ¶
func (s *ApiKeyStorage) Delete(key string) error
type FileStorage ¶
type FileStorage struct {
MountDir string
}
func NewFileStorage ¶
func NewFileStorage(c FileStorageConfig) *FileStorage
func (*FileStorage) Download ¶
func (s *FileStorage) Download(p media.Path) (*media.DownloadResponse, error)
func (*FileStorage) DownloadArchive ¶
func (*FileStorage) SpaceUsage ¶
func (s *FileStorage) SpaceUsage() (float64, error)
func (*FileStorage) Upload ¶
func (s *FileStorage) Upload(in media.UploadInput) error
type FileStorageConfig ¶
type FileStorageConfig struct {
MountDir string
}
type NamedTransformationStorage ¶
type NamedTransformationStorage struct {
// contains filtered or unexported fields
}
func NewNamedTransformationStorage ¶
func NewNamedTransformationStorage() *NamedTransformationStorage
func (*NamedTransformationStorage) Delete ¶
func (s *NamedTransformationStorage) Delete(name string) error
func (*NamedTransformationStorage) DeleteAll ¶
func (s *NamedTransformationStorage) DeleteAll() error
func (*NamedTransformationStorage) Get ¶
func (s *NamedTransformationStorage) Get(name string) (*transformation.NamedTransformation, error)
func (*NamedTransformationStorage) GetAll ¶
func (s *NamedTransformationStorage) GetAll() (transformation.NamedTransformations, error)
func (*NamedTransformationStorage) Save ¶
func (s *NamedTransformationStorage) Save(namedTransformation transformation.NamedTransformation) error
Click to show internal directories.
Click to hide internal directories.