Versions in this module Expand all Collapse all v0 v0.3.0 Aug 2, 2023 Changes in this version type Filestore + func (f *Filestore) Exists(ctx context.Context, hash string) (bool, error) + func (f *Filestore) StoreHashed(ctx context.Context, r io.Reader, hash string) error v0.2.0 Jul 14, 2023 Changes in this version + const DefaultPrefixSize + const DefaultTargetFileMode + type Filestore struct + PrefixSize int + TargetFileMode os.FileMode + func NewFilestore(tmpPath, assetsPath string) (*Filestore, error) + func (f *Filestore) Fetch(ctx context.Context, hash string) (io.ReadCloser, error) + func (f *Filestore) ImgproxyURLSource(hash string) (string, error) + func (f *Filestore) Iterate(ctx context.Context, maxBatch int, callback func(hashes []string) error) error + func (f *Filestore) Remove(ctx context.Context, hash string) error + func (f *Filestore) Size(ctx context.Context, hash string) (int64, error) + func (f *Filestore) Store(ctx context.Context, r io.Reader) (hash string, err error)