Commit Graph

366 Commits

Author SHA1 Message Date
Brad Fitzpatrick 70aa373ab9 schema: sort imports, add test-target to quiet dev_appserver noise.
Change-Id: I006980e9774ab2a31d2f202bf3bc987dd51508a9
2011-10-18 10:35:48 -07:00
Brad Fitzpatrick fe2d2187ee sort imports after gofix
Change-Id: Ia1437192bfda7d37d78e4c657ef19eef5d1e4ad0
2011-10-17 17:07:59 -07:00
Brad Fitzpatrick a77365cf53 Don't use syscall in camli/schema
Change-Id: I0ad2c765a80b5bab95f4f9eb146e2dc0e93fb4fe
2011-10-17 17:07:31 -07:00
Brett Slatkin 130b05eaeb App Engine: Fixes /bs/camli/stat to return the correct upload URL
Change-Id: I9062917fe052652c3714c99ab7f572f8f20e5dba
2011-10-13 00:00:54 -07:00
Brad Fitzpatrick da562c8bed jsonsign: don't check for default secretring file unless we don't have an entity fetcher
Change-Id: I9ea58b09c5ad5465f64ce36d0cbc4edcc00c5d9d
2011-10-12 22:59:47 -07:00
Brad Fitzpatrick abf719be0b fix bug where storageAndConfig.WrapContext was losing its Configer
Change-Id: I77d89830f0607e7633e14fa1bd4893afe394486d
2011-10-12 22:29:42 -07:00
Brad Fitzpatrick d0063aa48d fix stat crash
Change-Id: Ieb959b215a3be3f47781426a0a8be4b7421b1af6
2011-10-12 22:02:11 -07:00
Brad Fitzpatrick 73030a9ae9 fix crash
Change-Id: I11e9c5639e698090db26e8710b55aef7f2a64f96
2011-10-12 21:52:01 -07:00
Brad Fitzpatrick 11acecce92 Start of making canLongPoll configurable for App Engine to set it to false, for now.
Change-Id: Ib4d7a306276a7292e7d8a8838c3b026d38b5fb6b
2011-10-10 18:04:20 -07:00
Brad Fitzpatrick 453fd92fbe client: don't register client flags by default
Change-Id: I73a3242f1cfd2af9a63dd53c7174843a234c5f18
2011-10-10 17:38:18 -07:00
Brad Fitzpatrick 38b30381e0 client: always sent a ContentLength on upload posts.
Change-Id: I531d7f74b5dd3490e7d0725140ea5cd1f358c704
2011-10-10 17:01:52 -07:00
Brad Fitzpatrick 4fc24cba87 App Engine get support, untested, and fix Config shadowing breaking stat
Change-Id: I488a81c7968af746b727bcfc3ed8a4649107a26c
2011-10-09 18:41:54 -07:00
Brad Fitzpatrick e9991b1702 Barely tested App Engine stat handler support.
Change-Id: Ia8abc53e3f538198773940f9515ff551e97eb8de
2011-10-06 23:24:40 -07:00
Brad Fitzpatrick 2600d227eb introduce ContextWrapper to get App Engine its Context.
Change-Id: I789440f01a42b1172b6c70ff14f00ff5bd45786a
2011-10-06 17:44:30 -07:00
Brad Fitzpatrick 2096e2b911 Use := instead; err isn't shadowed
Change-Id: I12a3ef991105a2b48fd786003491507313925ce6
2011-10-05 17:30:54 -07:00
Brad Fitzpatrick 3294330774 skip this test for now
Change-Id: I135bdf3527abe63af91ca38710f032341bca6de1
2011-10-05 07:41:54 -07:00
Brad Fitzpatrick 3f5631d2d8 serverconfig: push abs path business to caller 2011-10-04 16:22:12 -07:00
Brad Fitzpatrick 7c2f4b57ef Temporary (?) experiment: start targetting release versions.
So we can run on App Engine sooner than later.

Change-Id: Ia572a16d02316716489fdd38c05d4cb63706004e
2011-10-03 16:50:01 -07:00
Brett Slatkin 1b926f66ff Break dependency from fileembed to syscall package.
Change-Id: Ibe518b1063636428beb5beeda96b01ab36d3716d
2011-09-30 05:37:09 +00:00
Brett Slatkin b967f04d4e camlistored: Refactor main() into tiny main and loader library
This will make running on App Engine a lot easier, letting us share code.

Change-Id: Ibe989387d44d94869c31c8306683e49af261496a
2011-09-30 05:07:04 +00:00
Brad Fitzpatrick 8c72348a19 Rename Stat->StatBlobs, Remove->RemoveBlobs; add StatReceiver.
Also, return missing errors in google storage stubs.

Change-Id: I5b168bbcd8a2996e3db4ffc35d2ac06006b3a2d3
2011-09-28 19:37:28 -07:00
Brad Fitzpatrick 7f48b1e9a9 split WriteFileFromReader into two parts; existing API and new one taking a map
Change-Id: Icac3aced7cdb0cf67c369f7198ff959f5a416e9c
2011-09-28 11:07:07 -07:00
Brad Fitzpatrick 6c78d45507 make Client.Stat use auth; fix handle size -1 bugs
Change-Id: I5ca46e9996e018727b082895d76a047b62ffed2d
2011-09-28 11:06:16 -07:00
Brad Fitzpatrick 13806ff26d add remote.NewFromClient constructor
Change-Id: Id49805a427de0c5adcc2aca956cd96ea817a41f8
2011-09-28 11:05:35 -07:00
Brad Fitzpatrick 8b758385d5 put SizedBlobRef String method on the value
Change-Id: Ibfefbc3d21bf4f0cdf7ef729982a02478416802b
2011-09-28 11:05:02 -07:00
Brad Fitzpatrick 42792ccaa0 gofmt
Change-Id: Ia0167859e9acea25f0a2d8c8efff53bb3683add5
2011-09-27 16:02:28 -07:00
Brad Fitzpatrick 12f236da37 Start of major camput command-line cleanup.
So far only "init" and "file" are done:

$ grep -r RegisterCommand clients/go/camput
clients/go/camput/init.go:      RegisterCommand("init", c)
clients/go/camput/files.go:     RegisterCommand("file", cmd)

New command line syntax is:

Usage: camput [globalopts] <mode> [commandopts] [commandargs]

Examples:

  camput init

  camput file [opts] <files/directories>

  camput permanode [opts] (create a new permanode)

  camput share [opts] <blobref to share via haveref>

  camput blob <files>     (raw, without any metadata)
  camput blob -           (read from stdin)

  camput attr <permanode> <name> <value>         Set attribute
  camput attr --add <permanode> <name> <value>   Adds attribute (e.g. "tag")
  camput attr --del <permanode> <name> [<value>] Deletes named attribute [value]

For mode-specific help:

  camput MODE -help

Change-Id: I4aeabeff6450beab83c13d94c16bd007addb8b58
2011-09-25 17:40:01 -07:00
Brad Fitzpatrick 65a9728674 gpgPath wasn't used anywhere
Change-Id: I783a70d8cccea6d36a8f451e28c71e60a826eea0
2011-09-25 17:38:58 -07:00
Brad Fitzpatrick 0d31843933 upload: make channel buffered to prevent goroutines potentially hanging; close pipe explicitly to help catch errors
Change-Id: I47e150dba75cad6c9fc58e2895e4bde5f55cac21
2011-09-24 14:13:57 -07:00
Brad Fitzpatrick 8cef40d581 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-09-20 18:30:29 -07:00
Brad Fitzpatrick e6b53c1f34 client: close Body earlier, don't gaurd against nil
Change-Id: I6b06db6d586967478b2ae6d880587b0234d8eb0b
2011-09-20 18:30:15 -07:00
Brad Fitzpatrick d4c0490942 localdisk: ignore link race
Change-Id: If85c3dcea5fdde7c9fb9e24b4074c34230c98ed5
2011-09-20 18:28:49 -07:00
Brad Fitzpatrick f1f121fef6 Now that Go bug 2267 is fixed, update this.
Change-Id: I3794c12e68231a3e4d0fdb3f6ee376f934833f50
2011-09-20 12:04:10 -07:00
Brad Fitzpatrick 6f91469776 camput statcache
Change-Id: I0b469b3497b7ae87f0de039a1398c3102139cdf4
2011-09-17 15:14:37 -07:00
Brad Fitzpatrick 9489f98911 gob support for blobref
Change-Id: I03c0cc9130d694f7015d2c92a6cf5b715b379883
2011-09-16 17:59:15 -07:00
Brad Fitzpatrick f9e453e666 add CacheDir to osutil
Change-Id: I8f6b1d6c8d1b275d329eeac2d91e15a3582e59fb
2011-09-16 17:56:49 -07:00
Brad Fitzpatrick e636911300 add notes file
Change-Id: Ib61e0bbb14447e5997d3c1ac525526e5c3ad8e3e
2011-09-16 11:56:49 -07:00
Brad Fitzpatrick a05b4949cb shrink some columns, use ENGINE= instead of TYPE=
Change-Id: Idac91f3ff1ea3dbab9bb11f7ee4b1f383ab1878b
2011-09-15 21:57:32 -07:00
Brad Fitzpatrick d35c4a4ddc minor client/upload changes
Change-Id: I02ec44ff72575e547fee5e44667d648cf06b54f8
2011-09-15 21:52:33 -07:00
Brad Fitzpatrick 3eb3b994ca Go update; gofix for image changes
Change-Id: Id58f0abe112506ba665df37b99414360c236fc43
2011-09-15 21:21:02 -07:00
Brad Fitzpatrick 31488a1d5f Issue 43: clean and rename the "files" table and its columns
Part of Issue 17 (the files/bytes change)

Details:
http://code.google.com/p/camlistore/issues/detail?id=43
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ic6ebc018edf51f92bf2063c42fa19f80fe597181
2011-09-13 19:56:58 -07:00
mpl d18bd115f2 update fields when inserting permanode post claim.
fixes issue 41.

Change-Id: Id81b4d9df273c7c71388b7ac93f5eb626a5e298c
2011-09-13 23:31:05 +02:00
Brad Fitzpatrick cd3eb19b75 Merge "Issue 17: file vs. bytes schema change" 2011-09-13 19:18:14 +00:00
Brad Fitzpatrick c0ea8dbcb1 Issue 17: file vs. bytes schema change
Details:
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ia1237952a2a66f1dcacd00c5c28eb360d9f1d1d7
2011-09-13 11:57:50 -07:00
mpl 03e2da9f9a set error status code in serveRecentPermanodes
Change-Id: If7e982b1c35700823ca181e1331e404766a9ebd5
2011-09-04 22:13:16 +02:00
mpl b0dda5e86f Various renamings. dropped getTagged.
Change-Id: I20982074071b819110fe07cb795ffcb7d6c8560e
2011-09-04 00:48:49 +02:00
mpl aa83d21048 added search by title,
merged with search by tag.
added general search.

Change-Id: I98244e62dbd8a4c75527c4a029bd78f8978cbadc
2011-09-02 13:45:55 +02:00
Brad Fitzpatrick 26da0d2be4 db: make stmt.Exec also return Results
Change-Id: I5f32e77fbae7db0e9f601b7f581fd55dc261e67f
2011-08-28 22:16:58 +04:00
Brad Fitzpatrick 1cb46af3d5 db: optional Execer interface
Change-Id: Ied473f38c3cef5b68e59e1e557b6dbcfc410ac2d
2011-08-28 22:12:41 +04:00
Brad Fitzpatrick 10fecbff2c db: Stmt.QueryRow, more docs, tests
Change-Id: I6ae89798520f170ebcb922946435c10348e8e7a9
2011-08-28 21:56:32 +04:00