filesystem

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func (*ApiKeyStorage) Get

func (s *ApiKeyStorage) Get(key string) (*apikey.ApiKey, error)

func (*ApiKeyStorage) GetAll

func (s *ApiKeyStorage) GetAll() (apikey.ApiKeys, error)

func (*ApiKeyStorage) GetByName

func (s *ApiKeyStorage) GetByName(name string) (*apikey.ApiKey, error)

func (*ApiKeyStorage) Save

func (s *ApiKeyStorage) Save(apikey apikey.ApiKey) error

type FileStorage

type FileStorage struct {
	MountDir string
}

func NewFileStorage

func NewFileStorage(c FileStorageConfig) *FileStorage

func (*FileStorage) Copy

func (s *FileStorage) Copy(src, dst media.Path) error

func (*FileStorage) Delete

func (s *FileStorage) Delete(p media.Path) error

func (*FileStorage) Download

func (s *FileStorage) Download(p media.Path) (*media.DownloadResponse, error)

func (*FileStorage) DownloadArchive

func (s *FileStorage) DownloadArchive(paths []media.Path) (media.Body, error)

func (*FileStorage) Move

func (s *FileStorage) Move(src, dst media.Path) error

func (*FileStorage) ReadMany

func (s *FileStorage) ReadMany(p media.Path) ([]media.FileInfo, error)

func (*FileStorage) ReadOne

func (s *FileStorage) ReadOne(p media.Path) (*media.FileInfo, error)

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 (*NamedTransformationStorage) GetAll

func (*NamedTransformationStorage) Save

Jump to

Keyboard shortcuts

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