Chris Masone
3dcc16dd4c
Fix some nits in file_store_test.go and s3_store_test.go
...
1) Members of the 'suite' struct can be private
2) file is not a reserved word, so no need for fyle
3) no 'new'
2015-07-10 11:46:54 -07:00
Chris Masone
6c3047cf03
Make all ChunkStore impls crash on Write() after Close/Ref()
...
I incorrectly said this was already true in a previous patch, so
make it true now!
Also, updated file_store_test.go and s3_store_test.go to use stretchr
testify suites so they can share setup and teardown code.
Fixes issue #5 as well
2015-07-10 11:31:11 -07:00
Aaron Boodman
96f21c4a60
Remove the Foo/flatFoo abstraction in the types package.
...
Fixes #24 .
2015-07-10 11:29:03 -07:00
Aaron Boodman
82a87d548c
Use go generate instead of custom thing for generating primitives
2015-07-10 10:39:31 -07:00
Aaron Boodman
fd75f33c8c
comment cleanup
2015-07-09 18:58:44 -07:00
Aaron Boodman
9643664738
Rename jsonImporter/jsonImporter.go -> json_importer/json_importer.go
2015-07-09 18:51:24 -07:00
Aaron Boodman
c4537d82d6
futureEquals fast path
2015-07-09 18:38:32 -07:00
Aaron Boodman
dffcf94c7d
Fix typo in TODO
2015-07-09 18:13:18 -07:00
Aaron Boodman
6201833b38
Remove rest of types tests back into types package
2015-07-09 18:12:28 -07:00
Aaron Boodman
90d7042a3a
fast path when comparing futures for primitives
2015-07-09 18:07:23 -07:00
Aaron Boodman
8b6c67cad2
Remove the Reffer/RefferImpl abstraction
2015-07-09 17:51:32 -07:00
Aaron Boodman
1640657030
Rename Future->future
2015-07-09 17:51:25 -07:00
Aaron Boodman
ca43c9cfec
Decode Lists lazily
2015-07-09 17:30:43 -07:00
Aaron Boodman
d5b90dd43c
Teach flatList about Futures.
2015-07-09 17:30:43 -07:00
Aaron Boodman
8662a36344
Add types.Future, which will be the basis for lazy loading.
2015-07-09 17:30:43 -07:00
Aaron Boodman
2aa809e167
Move enc/* into types/*.
2015-07-09 17:30:43 -07:00
Chris Masone
7b91f06f04
jsonImporter fixups
...
1) Tolerate lists with no entries
2) Exit with error messages instead of Chk.NoError() in main()
3) General variable names
4) Use json.NewDecoder() instead of reading all data into memory again.
5) Idiomatic fixes.
Addresses issue #20
2015-07-09 14:20:29 -07:00
Chris Masone
1faabb2ddd
Basic JSON importer
...
This basic importer takes a URL and pulls the JSON in as
weakly typed data -- lists and maps of basic types.
Addresses issue #20
2015-07-09 13:53:02 -07:00
Chris Masone
8ec835a134
Ensure that chunks opened for reading get closed
2015-07-09 13:30:41 -07:00
Chris Masone
cd9656cdb9
Add friendly message to Chk for Reffer != nil
...
Now you get told you're holding it wrong when you fail
to import the enc package and get the global definition for
Reffer.
2015-07-08 15:53:10 -07:00
Aaron Boodman
4b4a1b1f47
FileStore should not write duplicate files (issue 16)
2015-07-08 11:40:07 -07:00
Chris Masone
7a84f6313e
Cleanup Close() and Ref() semantics in ChunkStore impls
...
In both FileStore and S3Store, the behavior of calling Ref() twice, or of
calling Ref() after Close() was undefined and probably crashy. After this,
the semantics are as follows:
Once either Ref() or Close() is called, you can't Write() any more.
Ref() can be called any number of times
Close() can be called any number of times
Ref() and Close() can be called in any order.
Addresses issue #6
2015-07-07 15:54:20 -07:00
aboodman
95aad8f825
Update README.md
2015-07-07 14:53:25 -07:00
aboodman
bcbaae3cb7
Update README.md
2015-07-07 14:53:04 -07:00
Aaron Boodman
c0835a970c
server: Add README
2015-07-07 14:49:44 -07:00
aboodman
ef0b088b91
Update README.md
2015-07-07 14:47:08 -07:00
aboodman
6fdf6536af
Update README.md
2015-07-07 14:46:52 -07:00
aboodman
4e0298985f
Update README.md
2015-07-07 14:44:05 -07:00
aboodman
898cf6dd1f
Update README.md
2015-07-07 14:43:50 -07:00
Aaron Boodman
f34d946161
server: remove createDummyData - not needed anymore
2015-07-07 14:40:18 -07:00
Aaron Boodman
31e14b690e
server: RootTracker interface is now once again part of ChunkStore
2015-07-07 14:27:38 -07:00
Aaron Boodman
1fe0f6c79f
server: Don't crash if no flags passed
2015-07-07 14:27:38 -07:00
aboodman
08a4ed55f0
Update README.md
2015-07-07 14:23:48 -07:00
aboodman
833a9b102e
Update README.md
2015-07-07 14:23:20 -07:00
aboodman
3eb06e87b0
Update README.md
2015-07-07 14:21:43 -07:00
aboodman
91fad935bc
Update README.md
2015-07-07 14:21:04 -07:00
Chris Masone
748f75101f
Change datastore package to be named datas
...
Because datastore is too long, and datas is reminiscent of chunks.
Resolves #8
2015-07-07 13:09:38 -07:00
aboodman
46021ebeca
Update README.md
2015-07-07 11:33:03 -07:00
Chris Masone
3a5397a609
Fix input path of sha1 package in ref_test.go
...
This was incorrectly set to go/pkg/src/crypto/sha1,
but should just be crypto/sha1
2015-07-07 11:06:21 -07:00
Aaron Boodman
cb1fb984b3
Remove distinction between RootTracker and ChunkStore in DataStore
2015-07-05 23:05:51 -07:00
Aaron Boodman
2cea5d0340
Remove user package
2015-07-05 22:57:54 -07:00
Aaron Boodman
369e2a1cda
Add test for ref.FromHash
2015-07-01 23:08:47 -07:00
Aaron Boodman
302042e387
Add a test for Ref::Digest()
2015-07-01 23:02:14 -07:00
Aaron Boodman
b07889e24a
rename flat_set_test.go to set_test.go for consistency with other files in this directory
2015-07-01 22:56:52 -07:00
Aaron Boodman
e6f1f0147d
Add test for Set::Any()
2015-07-01 22:56:29 -07:00
aboodman
1a5095c0ff
Update README.md
2015-07-01 18:42:12 -07:00
aboodman
d73887065c
Update README.md
2015-07-01 18:41:26 -07:00
Aaron Boodman
8590bd4249
Finish first crack at generating strong Go types for noms data
2015-06-26 16:35:08 -07:00
Rafael Weinstein
153d83600e
remove named TODOs
2015-06-25 09:47:54 -07:00
Rafael Weinstein
d0ab1bf595
a bit more cleanup
2015-06-24 20:39:25 -07:00