Versions in this module Expand all Collapse all v0 v0.0.1 Jun 7, 2024 Changes in this version + const BannerDir + const ExtensionImage + const ExtensionVideo + const PosterDir + const ThumbnailDir + type FileSystem struct + func NewFileSystem(c configmodels.Directories) (fs *FileSystem) + func (f FileSystem) CreateAnime(anime domain.AnimeBase) (*os.File, error) + func (f FileSystem) L() *zap.Logger + func (fs FileSystem) Close() error + func (fs FileSystem) CreateBannerImage(reader io.Reader) (string, error) + func (fs FileSystem) CreatePathAnime(anime domain.AnimeBase) string + func (fs FileSystem) CreatePosterImage(reader io.Reader) (string, error) + func (fs FileSystem) CreateTempAnime(anime domain.AnimeBase) (*os.File, error) + func (fs FileSystem) CreateTempImage() (*os.File, error) + func (fs FileSystem) CreateThumbnailImage(reader io.Reader) (string, error) + func (fs FileSystem) DeleteAnime(anime domain.AnimeBase) (err error) + func (fs FileSystem) DeleteBannerImage(filename string) error + func (fs FileSystem) DeletePosterImage(filename string) error + func (fs FileSystem) DeleteThumbnailImage(filename string) error + func (fs FileSystem) EnsureDirectories() (err error) + func (fs FileSystem) GetAnime(anime domain.AnimeBase) (io.ReadCloser, error) + func (fs FileSystem) GetBannerImages() ([]fs.DirEntry, error) + func (fs FileSystem) GetBannerPath() string + func (fs FileSystem) GetDownloadsPath() string + func (fs FileSystem) GetImagesPath() string + func (fs FileSystem) GetPosterImages() ([]fs.DirEntry, error) + func (fs FileSystem) GetPosterPath() string + func (fs FileSystem) GetTemporaryDownloadsPath() string + func (fs FileSystem) GetThumbnailImages() ([]fs.DirEntry, error) + func (fs FileSystem) GetThumbnailPath() string + func (fs FileSystem) HasAnime(anime domain.AnimeBase) bool + func (fs FileSystem) HasBannerImage(hash string) bool + func (fs FileSystem) HasPosterImage(hash string) bool + func (fs FileSystem) HasThumbnailImage(hash string) bool