The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. See MAINTAINERS.md for instructions to keep up to date.
- Fixed
WalkFrom
onS3
andGCS
when bothPrefix
andStartingPoint
was provided.
-
Added Clonable interface so you can call
dstore.Clone(ctx)
on a remote store, instantiate a new network client and context. -
Added
dstore.ReadObject
to easily read a single file from afileURL
. -
Added
dstore.NewStoreFromFileURL
to replacedstore.NewStoreFromURL
which was not clear that it's usage is meant to create a store from a file directly. -
Added
dstore.OpenObject
that is able to open a single store element without having to create a separate store, this is a shortcut for splitting the path & filename, creating a new store from the path and then callingstore.OpenObject
. -
Added
Store::BaseURL()
to retrieve the underlying URL of the store.
-
Improved 'Walk' speed on gstore by 25% by only fetching 'Name'
-
Store
dstore.MockStore
now opened up public access toFiles
to easily get all written content. -
BREAKING:
MockStore
'sSubStore
method has changed behavior. It now removes the prefix from files already present, to conform to the behavior of other stores. This might affect your use ofMockStore::SetFile()
in tests. -
The
Walk()
andListFiles()
methods does not have anignoreSuffix
parameter anymore. This is managed internally by the LocalStore which was the only one that needed it, when writing temporary files (and renaming afterwards). Simplifies it for everyone else. -
The
dstore.NewLocalStore
(local store implementation) sanitize the input if it does not start withfile://
. -
BREAKING: The
NewLocalStore
now takes a*url.URL
object instead of astring
. Just pass a&url.URL{Scheme: "file", Path: originalString}
to fix your code, if you're usingNewLocalStore
directly and not the recommendedNewStore
.
- Deprecated The method
dstore.NewStoreFromURL
is deprecated, usedstore.NewStoreFromFileURL
which is clearer in semantics.