Versions in this module Expand all Collapse all v0 v0.1.1 Aug 24, 2023 v0.1.0 Aug 9, 2023 Changes in this version + var ErrNotExist = fs.ErrNotExist + var ErrReadOnly = errors.New("read only object store") + func AppendTags(buf []byte, tags ...Tag) []byte + type Filter = query.Filter[*Info] + func AFTER(t time.Time) Filter + func AND(f1, f2 Filter) Filter + func BEFORE(t time.Time) Filter + func MATCH(name, value string) Filter + func NOT(f Filter) Filter + func OR(f1, f2 Filter) Filter + type Info struct + CreatedAt time.Time + Name string + Size int64 + Tags []Tag + func (info *Info) After(t time.Time) bool + func (info *Info) Before(t time.Time) bool + func (info *Info) Lookup(name string) (string, bool) + func (info *Info) Match(name, value string) bool + type Store interface + CreateObject func(ctx context.Context, name string, data io.Reader, tags ...Tag) error + DeleteObject func(ctx context.Context, name string) error + ListObjects func(ctx context.Context, prefix string, filters ...Filter) stream.ReadCloser[Info] + ReadObject func(ctx context.Context, name string) (io.ReadSeekCloser, error) + StatObject func(ctx context.Context, name string) (Info, error) + func DirStore(path string) (Store, error) + func EmptyStore() Store + type Tag struct + Name string + Value string + func (t Tag) String() string