Documentation ¶
Overview ¶
Package implementations contains helpers to help implementing a filestorage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteIfNotExist ¶
func WriteIfNotExist(ctx context.Context, s filestorage.FileStorage, src io.Reader, destPath string) (new bool, url string, err error)
WriteIfNotExist is an helper to implements FileStorage.WriteIfNotExist Since this function is the same for all provider, let's not rewrite it
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package cloudinary is an implementation of filestorage for Cloudinary
|
Package cloudinary is an implementation of filestorage for Cloudinary |
Package fsstorage is an implementation of filestorage using the filesystem
|
Package fsstorage is an implementation of filestorage using the filesystem |
Package gcstorage is an implementation of filestorage for Google Cloud
|
Package gcstorage is an implementation of filestorage for Google Cloud |
Package mockfilestorage is a generated GoMock package.
|
Package mockfilestorage is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.