Versions in this module Expand all Collapse all v1 v1.3.0 Oct 23, 2023 Changes in this version + var ErrInvalidFSType = errors.New("invalid file store type") + var ErrNoFSRoot = errors.New("no file store root") + var ErrNotImplementedFSType = errors.New("FSInfo.Create not implemented for provided file store type") + func StoreFromHTTP(fs FS, r *http.Request, key string) error + type FS interface + Check func() error + Open func(name string) (fs.File, error) + OpenUUID func(id uuid.UUID) (fs.File, error) + RemoveUUID func(id uuid.UUID) error + Store func(id uuid.UUID, name, contentType string, data io.Reader) error + type FSInfo struct + Bucket string + Endpoint string + FSType fsType + ID string + Location string + Root string + Secret string + Secure bool + func (i *FSInfo) Create() (FS, error) + type FileInfo interface + ContentType func() string + ID func() uuid.UUID