Commit Graph

581 Commits

Author SHA1 Message Date
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
Brad Fitzpatrick 13f060be3f db: rename to NullableString, add docs
Change-Id: I861f3f88ce2678ebf4a0d53905825b4ecd3ba448
2011-08-28 21:37:25 +04:00
Brad Fitzpatrick 33d4b06492 db: more type conversions
Change-Id: I8e950fcad9d7e4d3609c779c17de87e64feaad9f
2011-08-28 21:32:28 +04:00
Brad Fitzpatrick 543b3876a2 db: implement MaybeString and ScannerInto
Change-Id: I3884e0b004bd0a9b9ad1de838ad1aeeb4f303fa5
2011-08-28 20:58:32 +04:00
Brad Fitzpatrick 0f5a0467d1 db: scanning, working queries, and where clauses in fakedb
Change-Id: Iac9cf913a8857ba122bc3e155c11506df529104c
2011-08-28 20:50:05 +04:00
Brad Fitzpatrick 02c5ccfd2a db: more type conversion work, this time in the db package
Change-Id: Iff03c9b24bb73d6389d2763f85cd3c7135b4202c
2011-08-28 20:49:00 +04:00
Brad Fitzpatrick 577916939d db: query work
Change-Id: I5cf36f64d6894ce7522129db2724044fe0e1ae30
2011-08-28 16:34:03 +04:00
Brad Fitzpatrick 88c89757e1 gofixes for latest Go changes
Change-Id: Ib7b3aea5adff0e1683bcb421cc3549c31d9fe174
2011-08-25 19:14:47 +04:00
Brad Fitzpatrick 7f2f506132 camli/db: typecheck & convert pre-bound statement parameters
Change-Id: Ic9b6dfa7b1fef0c6046c2e0454e996e2d5a8dfa6
2011-08-25 18:50:45 +04:00
Brad Fitzpatrick 7095174178 camli/db: move SubsetValue into dbimpl
Change-Id: I81e965fd3e24d642925651225e1cc968ab015a72
2011-08-25 18:35:39 +04:00
Brad Fitzpatrick 3a29e1c245 camli/db: more type conversion work
Change-Id: Icbbf4a084017478ba74df85f4c31be6541d7b44e
2011-08-25 18:25:12 +04:00
Brad Fitzpatrick 2f1527a71d camli/db: start of more tests
Change-Id: If8d04b9d088363f4aed8fb1959c2847e9a527792
2011-08-25 17:51:22 +04:00
Brad Fitzpatrick df6b7ac86e Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-08-25 17:33:46 +04:00
Brad Fitzpatrick 3c886de92b camli/db: start of type conversion work
Change-Id: I5467eee286e1752b3961c6fe3018fb78795b362f
2011-08-25 17:31:24 +04:00
mpl f8429bbf03 tiny typo
Change-Id: I2aec96e56c056be976528c5c2e81e8fc03d4a29a
2011-08-24 23:10:28 +02:00
Brad Fitzpatrick a9853a4622 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-08-24 18:23:31 +04:00
Brad Fitzpatrick 57a5439648 camli/db: some more insert work
Change-Id: I80af5b64ba834674df36bafea75ab84ce5922ea3
2011-08-24 18:23:14 +04:00
Brad Fitzpatrick 80b91d5ba8 more camli/db work.
Change-Id: I9c86df6a9e528432305d6042a59dd171f1b67109
2011-08-24 18:10:05 +04:00
Brad Fitzpatrick 501736e54d db: more Go db work, including intro goals doc
Change-Id: I69e914bc533b3f69fba5d869c90337ee2da2fa06
2011-08-21 14:14:04 +04:00
Iain Peet cb183a1ae2 Implemented Google Storage requests required for blobserver.
This commit really just contains the camlistore-independent
google storage code (googlestorage.go).  I've stubbed out the Storage
interface, but that's not yet done.

Committing now because this is large enough already.

Change-Id: Ie122b11bebed13b36f99f80144787ad4edc0ed51
2011-08-18 10:47:45 -04:00
Jrabbit fdcc33356d namespace problem & setup.py file used for pypi uploading
Change-Id: I52a21f602a4cda201f5b446a427d0c5098e3d701
2011-08-18 08:48:35 -05:00
Brad Fitzpatrick 61b901104d Merge "Fixes camlistore's python library. And style" 2011-08-09 21:50:17 +00:00
Brad Fitzpatrick d72e6c4e47 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-08-08 16:21:54 -07:00
Jrabbit 4edf0bbda4 Fixes camlistore's python library. And style
Change-Id: Iea860ff9986098263d4fd596441ce363c464c654
2011-08-08 16:06:33 -05:00
Robert Hencke 52a15c7b91 first cut at a Camlistore WebDAV server
don't let it burn out your eyes too badly

Change-Id: I7b1b1df0abbcafff411025d30bd32cd250d2221d
2011-08-06 20:46:37 -05:00
Brad Fitzpatrick 8566612dde db WIP
Change-Id: I41d53d4345623955698f5664047dce2c1f429616
2011-07-31 18:20:36 -07:00
Brad Fitzpatrick 86e9e5ecd8 More db work
Change-Id: I45cea988ce785277ab5f59e59af4b72b24d18d55
2011-07-31 17:34:16 -07:00
Robert Hencke 999098b187 client: close HTTP responses when done.
camput was failing for large amounts of files because there
were too many open connections.

Change-Id: I5a8b93070f14601ec0f4102634ed62fd83a021d8
2011-07-30 22:29:01 -05:00
Brad Fitzpatrick 85d2472b34 Start of Go's db & db/dbimpl packages, being prototyped here.
Change-Id: I3f2e868403b44f878d5f3fdcb6b7d0971ac12a8d
2011-07-25 12:46:29 -07:00
Iain Peet 46881bb549 Initial work on google storage for developers.
Brought in goauth2 client library, added a utility for obtaining
tokens for the first time.

Change-Id: I7c8301912a086df55732c1a1bc4ddf619438d66c
2011-07-20 15:31:55 -04:00
Brad Fitzpatrick fc154b900e schema: make DirectoryEntry return errors instead of nil
Change-Id: I7965e35fef75e54023903044f0b8150e4420a653
2011-07-18 19:06:56 -07:00
Brad Fitzpatrick 41c701d1f7 Merge "browsing a (permanoded) dir continuation of https://camlistore.org/r/36" 2011-07-19 01:47:18 +00:00
mpl 42dcd20ccb browsing a (permanoded) dir
continuation of https://camlistore.org/r/36

Change-Id: Idd4977bb5f4d3c5bf80831ffa4d09085485da0f0
2011-07-18 15:49:31 +02:00
Brad Fitzpatrick a0dcdfc74d Fix URL opening on windows.
Change-Id: I802b8d9a41a551c8af10d848ba9e60439a3a00d2
2011-07-17 17:57:48 -07:00
Brad Fitzpatrick 95a98d991d open admin UI on windows
Change-Id: I0df5042ddd9bb9058660468b862916a97b86c280
2011-07-17 17:30:40 -07:00
Brad Fitzpatrick 7a0e7a30ce webserver: split Serve into Listen+Serve
Change-Id: I8dd6d9b660ee56d33551993dafb5c86da8d77805
2011-07-17 17:24:38 -07:00
Nigel Tao 8833cd00d3 Fix bug in image resizing code.
Change-Id: I76049f4a1353bd6f63c8022d3b69f2bb43631966
2011-07-17 17:24:15 -07:00
Brad Fitzpatrick 114404d4a7 make webserver build on windows
Change-Id: Ib580d8a39607a28ce6670a2a11cfc3ca42dcc866
2011-07-17 15:27:20 -07:00
Brad Fitzpatrick 98d0739753 fixes to go-flickr to make it compile with recent Go
Change-Id: I95e9c0ad7ca948022ae083a06f6f8e082f62d376
2011-07-17 13:11:53 -07:00
Brad Fitzpatrick ddc1485d28 Add github.com/mncaudill/go-flickr to third_party
Change-Id: Ie13d717076a14175ebff11b2847281014d7d8d70
2011-07-16 13:12:08 -07:00
Brad Fitzpatrick 8403b0bd27 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-14 16:52:47 -07:00
Brad Fitzpatrick d420e2da20 DirectoryEntry interface.
Change-Id: Ide492cd8f273ff2ae440ac15d67d02acee87c612
2011-07-14 10:43:30 -07:00
mpl 42a60238da added Type test to Superset.NewFileReader (as per TODO)
Change-Id: I2c9b0868e1df65306e978552db2e135c5d623289
2011-07-13 10:52:37 +02:00
Brad Fitzpatrick 08c37e0469 updates for latest image changes
Change-Id: Ife974ec53109fe7c1a5f1b1223649e1b1be99e69
2011-07-12 18:21:05 -07:00
Lindsey Simon a461c76ccd Photo gallery stylin
Change-Id: Ibfe50a8d58ee2bb0f1f85b45a1b617026f154a71
2011-07-11 13:09:25 -07:00
mpl bce36761a1 undo merging of change If30e0a9613db42a94feda66bb225a844de6d1839 because still a wip
Change-Id: Id25f5aa0ae63b9d41d8a3ac9fd832194eafd07ee
2011-07-11 10:51:40 +02:00
Nigel Tao dca7cac879 Update image resizing code for Go change 9031:5c33eaa24213
Change-Id: I42a1ac64ee1721b9d47500884f94c7ce95fbd966
2011-07-10 19:33:21 -07:00
mpl ad49800183 hacky sketch for browsing a dir
Change-Id: If30e0a9613db42a94feda66bb225a844de6d1839
2011-07-10 12:30:29 -07:00
Brad Fitzpatrick ad06f285ae Merge "make govet even happier" 2011-07-09 22:32:15 +00:00
Robert Hencke c7e6967cf4 make govet even happier
Change-Id: Ic3f0f6ae543cb661f7bdc4068f32c386cb453b85
2011-07-09 17:27:31 -05:00
Robert Hencke 910cd043a8 make Brad happier
Change-Id: I21100b3c63de0982b8991a1ccde331f36d681c0d
2011-07-09 17:20:14 -05:00
Robert Hencke b886a74d39 make govet happier
Change-Id: Iee52786e9f68f0a0f94dd70fa7917cf24d54e8c3
2011-07-09 16:11:20 -05:00
Brad Fitzpatrick 591ced28b8 Merge "Changed all references of sort.SortStrings to sort.Strings per commit 9012 of go" 2011-07-09 01:12:29 +00:00
Brad Fitzpatrick 16cc888842 Add configuration discovery to publish handler.
This permits metadata edits on the publish page if the
viewer is the owner.

(e.g. tagging, titling photos...)

Change-Id: I08b098eaae92f5b629b02707d67bec23a705c29f
2011-07-08 15:05:46 -07:00
Amit Levy d6825c9af8 Changed all references of sort.SortStrings to sort.Strings per commit 9012 of go
Change-Id: I2af1eeea05b65db10b17bc077a8af2dd5778910d
2011-07-08 17:54:03 -04:00
Brad Fitzpatrick 6fe189a4cd publishing: new URLs, tests. Yay photo galleries.
Change-Id: I9081b49faf95f5193945032cbc6711f412bca198
2011-07-06 18:38:27 -07:00
Brad Fitzpatrick 94242a9ac4 more publish path tests.
Change-Id: Ieeea2d76a476bc169f4fd3f962c18b0e3896719d
2011-07-06 16:33:31 -07:00
Brad Fitzpatrick 40c4e2e1f0 Start of publish tests.
Change-Id: I0fe2d03942c25d0bf28ba334568781a55324f013
2011-07-06 11:59:50 -07:00
Brad Fitzpatrick 443cfd5268 move FakeIndex from camli/search's private tests to camli/test so others can use it
Change-Id: I927add0bd645d92d6c36133ff8df5fa0fe33f770
2011-07-06 11:20:25 -07:00
Brad Fitzpatrick a477909f09 publish: support /mxxx subresources. aka HTML pages for permanode members. aka photo one-up pages from galleries.
Change-Id: I404e836a728048631c6149ef76eb6d7014ec7978
2011-07-05 17:27:10 -07:00
Brad Fitzpatrick ebaf8b563e publish: static file support. and ditch camli/misc/vfs now that it's in Go's pkg http.
Change-Id: I5bf87d3ee305173c722fab6d9f1568a7c1be081a
2011-07-05 12:10:35 -07:00
mpl 5926a965d9 add limit to GetTaggedPermanodes
Change-Id: I59efbbb0a6645b262aa739344d31979e11e4351e
2011-07-05 19:31:05 +02:00
Brad Fitzpatrick 767d6f16cc New working but incomplete MySQL wrapper. Makes DB stuff easier.
Change-Id: I43333f9410e6ffabe3c24f4c505aeba5dc7d46f4
2011-07-05 00:11:29 -07:00
Brad Fitzpatrick 0fc83ee54a Don't reference potentially nil s.result.
Change-Id: If0768550b54a6a206e38be7b4e951ef526a873cf
2011-07-04 14:57:08 -07:00
Brad Fitzpatrick 4ecffa2f59 Add temporary github GoMySQL fork to third_party.
Change-Id: I84cb505ec4f480caf30e0fbfed77a1d823c05a04
2011-07-04 13:03:58 -07:00
Brad Fitzpatrick f91404ecfc Update gomemcache in third_party.
Change-Id: Ide78f9528c1327fd91a681595429eb0ebdffacf0
2011-07-03 16:13:44 -07:00
Brad Fitzpatrick 3e792ae70b Permit updating a subset of third_party.
Change-Id: Iccb3b8ed7f6baed3c9494b86bbdba9d39bd368d7
2011-07-03 16:13:35 -07:00
Brad Fitzpatrick 2c126a4841 Photo gallery thumbnails.
Change-Id: I71a628057ff790928e96909512e43d2997a76f85
2011-07-03 13:33:56 -07:00
Brad Fitzpatrick 182a058232 publish: serve subresource files (e.g. gallery members), with access control
Change-Id: I9f91b596b145c83bb026ba93becb5174480acadc
2011-07-03 12:28:39 -07:00
Brad Fitzpatrick 78078701d0 publish: start of file resource downloads, later thumbnails.
Change-Id: Ida5b009c11d359887edad7612aeec5dab96447e4
2011-07-02 23:32:42 -07:00
Brad Fitzpatrick 6179e508e3 publish: show title, members, include javascript blob metadata
start of awesomeness.

Change-Id: I45d63b04fa223b9aafceb9452b179e4ddc52bce5
2011-07-02 17:16:30 -07:00
Brad Fitzpatrick e55f01d3ea GoMySQL third_party git update.
Change-Id: I49f87a1f474af835d06104fbffa759468cf1daf9
2011-07-02 09:57:11 -07:00
Brad Fitzpatrick 0020e785b4 Add gomemcache to third_party.
Change-Id: Id2a33229da783521f875c6a5e2a9d219dbbc6b59
2011-07-02 09:56:50 -07:00
Brad Fitzpatrick 024e801ca7 gofmt the whole tree
Change-Id: Ic1b3dd12a4ede83b299dcf51f342e72d4f8700da
2011-07-02 09:09:50 -07:00
Brad Fitzpatrick 91ec88b7bd Add GetTaggedPermanodes to FakeIndex for testing.
Change-Id: I6b70a298efecb5e577027e0c5e6cf435af33c2b4
2011-07-02 09:06:15 -07:00
mpl 05c18e873e search for permanodes with the given tag(s)
Change-Id: Ibbe0163da522698c253615a26d4201a7e28348de
2011-07-02 17:16:19 +02:00
Brad Fitzpatrick f0470c4d8f search: add docs, DescribeError, Result
Change-Id: I8c891fd2832da3f49e653288fded2a7bd2f7fd2c
2011-07-01 19:36:22 -07:00
Brad Fitzpatrick 13b9ebcd0e Use os.Remove, not syscall
Change-Id: I60cda72e8d48fb3c9de7770c1affe23fc96c1f10
2011-07-01 14:36:48 -07:00
Brad Fitzpatrick 7e633e48f2 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2011-07-01 14:33:43 -07:00
Brad Fitzpatrick 981f7d88a8 Describe cleanup + more search/index tests.
Change-Id: Ia7b6e83966c5c9481400f88495fe7fd518be2f77
2011-07-01 14:33:15 -07:00
Brad Fitzpatrick d304cb7a42 Merge "Implemented config file includes." 2011-07-01 20:34:12 +00:00
Brad Fitzpatrick 789ea237fc Merge "server: Support deleting paths." 2011-07-01 19:45:56 +00:00
Daniel Erat 80d4e8912a server: Support deleting paths.
Add an "active" column to the indexer's path table and use
it to track deletion of path attributes.

Change-Id: I579d53a80302d0f7ecc51b5c49913cd23814ce73
2011-07-01 19:45:03 +00:00
Brad Fitzpatrick eeeef01aff Start of some describe tests.
Change-Id: Ie6d4c7cc2040113cca611a1a72bd6d2efd2dbbb7
2011-07-01 12:38:00 -07:00
Brad Fitzpatrick 3040ca7d81 Start of search tests & an index fake.
Change-Id: I890048878c269d6a569d1aff9bd1982280daab5f
2011-07-01 12:00:10 -07:00
Brad Fitzpatrick 5ee34188f2 Revert bogus defer httputil.ReturnJson change.
Change-Id: I92f2bf63ba86e6829e697f28417e02e72f681245
2011-07-01 11:19:54 -07:00
Brad Fitzpatrick 68de472c53 More Describe work TODO notes
Change-Id: Ibd7c3dfdf4d75ac54bc908e8e534a17040f2608a
2011-06-30 16:25:18 -07:00
Brad Fitzpatrick 18b4f25b06 use defer httputil.ReturnJson
Change-Id: I4b454b3b68c3be52ba26cd640c4ba1163b32ec0e
2011-06-30 16:16:08 -07:00
Brad Fitzpatrick 1c014249e5 search: start of generalizing DescribeRequest
... into a usable API inside Go land, not just JavaScript.

Change-Id: Ic47508047d3eebaf903c98b50b60e64d05112a0f
2011-06-30 16:14:58 -07:00
Brad Fitzpatrick d572f898f7 search/publich: rename PathLookup to PathsLookup, add PathLookup
Change-Id: If6804af2229885cfa22d67d608d17e600d7402f3
2011-06-30 14:36:07 -07:00
Iain Peet 0ca7712691 Implemented config file includes.
I've implemented the previously stubbed out "_file" config expression.  The root
JSON object of the included file becomes the value of the field.  In addition to
searching the CWD and the config dir, the include will search directories listed
in the CAMLI_INCLUDE_PATH environment variable.  The include path is useful
because it gives us the ability to have default configs in git which can be
overridden by custom configs which are provided in another path directory which
gets searched first.

I ended up working on this because, as I was thinking about how to approach
supporting Google Storage, I realized that we would need to have secrets in
includes; this would be a pain when combined with the current configs and
runscripts in GIT.  So, one thing lead to another, and now this is done.

Change-Id: Ib256859326dfceefed90d0fadf83a76adffd538b
2011-06-30 14:21:26 -04:00
Brad Fitzpatrick 96cedf05db Update go. Fix struct tags.
Change-Id: I08d05144dbd4c4a50474d05f1f4ecea67c3424e4
2011-06-29 21:36:14 -07:00
Brad Fitzpatrick 15057eec02 Update to Go 8944
Change-Id: I7940180cbe882884286e56ee4fc7bf5589aad9e0
2011-06-29 21:13:03 -07:00
Brad Fitzpatrick a251f4064c search/publish: Add PathLook, wire up to publish handler.
Change-Id: I8645c54adbc6d84c18ecc814ca1966113da32d85
2011-06-27 18:42:00 -07:00
Brad Fitzpatrick 40739efa6b search + UI support for finding paths of a permanode
Change-Id: Iae9cfed38660204cf7e85342cd951d542a7258a2
2011-06-25 17:50:38 -07:00
Brad Fitzpatrick b2edc4a5f9 publishing work: index path mounts
Change-Id: I9e6f273289f136fbbfa8565c24be250e28ae1a6e
2011-06-24 18:50:00 -07:00
Brad Fitzpatrick 12abade62f Merge "lib/go/client/upload: make use of multipart writer in conjunction with io.pipe" 2011-06-24 02:02:13 +00:00
caine d4ff6f7932 lib/go/client/upload: make use of multipart writer in conjunction with io.pipe
Change-Id: I5b56d340a80ab6b96730ece84aaa8002d785a73c
2011-06-23 21:57:56 -04:00
Brad Fitzpatrick 23ff0a071f publish work: optionally create publish root permanodes+claims on start
Change-Id: I8659e977cea8872443ff2b311a7d0d8a2804c269
2011-06-23 12:12:37 -07:00
Julien Danjou 494d57cb4a Use auth.SendUnauthorized() to really request auth
Local function sendUnauthorized does not send all the header like
WWW-Authenticate, therefore browser do not propose a popup.
auth.SendUnauthorized is more complete in this regard.

Change-Id: Icef0a41394883e9606cab2557482bfa5b7b995ec
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-06-23 17:44:08 +02:00
Julien Danjou d6aaafa9c3 Fix return code in RequestEntityTooLargeError
Change-Id: Ic7fb562ba58e6807b4c2561d2a506ca02afa8c2b
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-06-23 17:44:08 +02:00
Brad Fitzpatrick 5b2ae24c69 search: add signerattrvalue handler, for publishing
Change-Id: I623570a719d4d713e0754d20064973de73a7241b
2011-06-22 22:21:18 -07:00
Brad Fitzpatrick 1f39a91eee Relegate camli/search to camli/search/recent
Change-Id: I7f76db980fe1788a6d0ac556e8176bc83cd6828f
2011-06-22 21:59:17 -07:00
Brad Fitzpatrick 4b0f04257f mysqlindexer: implement PermanodeOfSignerAttrValue for publishing
This was Brett's magical pony interface. Done.

Change-Id: Ifed76ca703ee3ec413dee39078c665d351a55e63
2011-06-22 20:24:16 -07:00
Brad Fitzpatrick 1f8723d30b mysqlindexer: keep map of gpg public key blobref -> keyid
Change-Id: I90f40d23bdaacf30f02e1ae20f17ec7844623e51
2011-06-22 18:58:06 -07:00
Brad Fitzpatrick 374872e002 mysqlindex: verify claims; add to signerattrvalue table
Change-Id: I44d6d6a6defe972c1a7dab9f8d39217704a809cc
2011-06-22 18:08:07 -07:00
Brad Fitzpatrick a49ffa1239 jsonsign: comment updates
Change-Id: I32ca3fc47b7f2ee4208aa69b05cf3cd1fcc57696
2011-06-22 18:04:20 -07:00
Brad Fitzpatrick 81cc07f564 update for Go change
Change-Id: Ibe1507e8cf3f9d1f8196201739e9c74a9b9d8e0a
2011-06-22 15:38:03 -07:00
Brad Fitzpatrick a56420c984 mysqlindexer: use receiver for populate methods
Change-Id: If2cbaee7acd86db837d1ca6c31aeee6a97be67e5
2011-06-19 14:54:57 -07:00
Brad Fitzpatrick 6ca4b975f7 Work on search/index/schema of PermanodeOfSignerAttrValue
Change-Id: I8c0c75ae8e4a62717ab69246f535b3fd5d594c47
2011-06-19 14:52:11 -07:00
Brad Fitzpatrick 30adc073f5 Version the mysql db schemas; warn on startup if wrong with tip to fix.
Change-Id: I3bc881bc5b078062bc96f80dec1e8f9ac71ece61
2011-06-19 14:36:46 -07:00
Brad Fitzpatrick d8f7bc9d98 jsonconfig: add OptionalList
Change-Id: I51bd6a785e47ddeca7b2ddd23c4665f61ef1d099
2011-06-19 13:09:05 -07:00
Brad Fitzpatrick bd15b4a4c2 Serve UI files from binary's embedded copy.
Change-Id: Ibb7902381f80111c943897e82e1eaa2b0ee7fc2c
2011-06-18 12:01:34 -07:00
Brad Fitzpatrick 81547a9eb6 Support for embedding static files (html/js) into the resulting binary.
Also build system changes for start of move to camlistore.org/* namespace
for Go packages.

Not yet wired up to ui.go.

Potential changes required for Go's http package first:
http://codereview.appspot.com/4629047/

Change-Id: I3ae264a5401d3a41e0b6e42b12010f19a9c9dcf7
2011-06-17 14:13:01 -07:00
Brett Slatkin 58bb35939e beginning of setting URL mount points for permanodes; nothing working yet
Change-Id: I9c33d67121e101369cdd797ef3b1c0ef74c8bdb0
2011-06-16 21:24:59 -07:00
Brad Fitzpatrick 0d7581ede6 Start of publish handler.
Change-Id: I229c9e00a19aa985050373beda696c5468a94105
2011-06-16 20:48:06 -07:00
Brad Fitzpatrick 8f38212408 Update for gofix httpheaders 2011-06-16 18:38:21 -07:00