Versions in this module Expand all Collapse all v1 v1.0.0 Oct 4, 2026 Changes in this version + const MaxListLimit + const MaxPresignExpiry + const MinPresignExpiry + var ErrAlreadyExists = errors.New("objectstore: already exists") + var ErrInvalid = errors.New("objectstore: invalid request") + var ErrNotFound = errors.New("objectstore: not found") + var ErrPermissionDenied = errors.New("objectstore: permission denied") + var ErrTooLarge = errors.New("objectstore: too large") + var ErrUnavailable = errors.New("objectstore: unavailable") + func All(ctx context.Context, s Store, opts ListOptions) iter.Seq2[Info, error] + type Codes struct + AlreadyExists int + Invalid int + NotFound int + PermissionDenied int + TooLarge int + Unavailable int + type CopyOptions struct + ContentType string + Metadata map[string]string + ReplaceMetadata bool + type Event struct + Bytes int64 + Duration time.Duration + Err error + Key string + Op Op + type GetOptions struct + Length int64 + Offset int64 + type Info struct + ContentType string + ETag string + Key string + LastModified time.Time + Metadata map[string]string + Size int64 + type ListOptions struct + Delimiter string + Limit int + PageToken string + Prefix string + type Object struct + Body io.ReadCloser + Length int64 + Offset int64 + type Op string + const OpCopy + const OpDelete + const OpGet + const OpList + const OpPresignGet + const OpPresignPut + const OpPut + const OpStat + type Page struct + NextPageToken string + Objects []Info + Prefixes []string + type PresignPutOptions struct + ContentType string + type Presigned struct + Expires time.Time + Header http.Header + Method string + URL *url.URL + type PutOptions struct + CacheControl string + ContentDisposition string + ContentType string + IfNotExists bool + MaxSize int64 + Metadata map[string]string + Size int64 + type Store interface + Copy func(ctx context.Context, src, dst string, opts CopyOptions) (Info, error) + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string, opts GetOptions) (*Object, error) + List func(ctx context.Context, opts ListOptions) (Page, error) + PresignGet func(ctx context.Context, key string, expiry time.Duration) (Presigned, error) + PresignPut func(ctx context.Context, key string, expiry time.Duration, opts PresignPutOptions) (Presigned, error) + Put func(ctx context.Context, key string, body io.Reader, opts PutOptions) (Info, error) + Stat func(ctx context.Context, key string) (Info, error) + func Observe(s Store, fn func(Event)) Store + func WithCodes(s Store, c Codes) Store