Documentation ¶
Overview ¶
Package ownwrites defines a blob.Storage wrapper that ensures that recently-written blobs show up in ListBlob() results, if the underlying provider is eventually consistent when it comes to list results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWrapper ¶
func NewWrapper(st, cacheStorage blob.Storage, prefixes []blob.ID, cacheDuration time.Duration) blob.Storage
NewWrapper returns new wrapper that ensures list consistency with local writes for the given set of blob prefixes. It leverages the provided local cache storage to maintain markers keeping track of recently created and deleted blobs.
Types ¶
type CacheStorage ¶
CacheStorage implements a wrapper around blob.Storage that ensures recent local mutations are reflected in ListBlobs() results.
func (*CacheStorage) DeleteBlob ¶
DeleteBlob implements blob.Storage and writes markers into local cache for all successful deletes.