Commit Graph

263 Commits

Author SHA1 Message Date
Brad Fitzpatrick 768af3d368 move clients/go/camgsinit to clients/camgsinit
Change-Id: I662b3b1ff4cf36a03f736533d3405737820f511f
2012-02-28 19:42:38 -08:00
Brad Fitzpatrick 350491ef7a fix import
Change-Id: I1943db2ab1913345ef05b3987d96e63a5600d39d
2012-02-28 19:42:04 -08:00
Brad Fitzpatrick c825acde06 move camdebug to cmd; it compiles as Go 1 already.
Change-Id: Ic9aa1112a504da96738b7ec3fc224df54b92cdc8
2012-02-21 02:14:34 -08:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00
Andrew Gerrand d60d29c560 implement recursive fetch 2012-01-02 16:07:58 +11:00
Andrew Gerrand 7f6964a0d6 actually do something with -o flag 2012-01-02 15:23:39 +11:00
Brad Fitzpatrick 398e1549c6 Add camput 'rawobj' subcommand for debugging.
Change-Id: I7f7e70a3c757889e6f8f4f264ea7f0e797c41e7a
2011-12-07 14:42:16 -08:00
Brad Fitzpatrick d50f2323fd gofmt
Change-Id: I0d7a2875854ea2a5bdf91cbace6c342f4b17525f
2011-12-07 14:41:19 -08:00
mpl 0e71f20415 auth: added username, camput can do https
Change-Id: I14a047f1a164b64062d94da0db7a64a658b086ae
2011-11-27 01:29:24 +01:00
mpl d7ce1b71ff started on the histogram (issue 18)
Change-Id: I5f90e8c96664221281ac04b4d49de53f352d90fa
2011-11-06 17:32:33 +01:00
Brad Fitzpatrick 453fd92fbe client: don't register client flags by default
Change-Id: I73a3242f1cfd2af9a63dd53c7174843a234c5f18
2011-10-10 17:38:18 -07:00
Brett Slatkin 69ec51052f camput: Change permanode -name to use the attribute "title" to match camlistore UI
Change-Id: I74e97fa22a5710b3f4d510d1d3c7de2d69b343ae
2011-09-30 03:42:31 +00:00
Brad Fitzpatrick dc69d53aae Some Issue 18 statistics work on camput
Change-Id: I409b0616aac5c8bdfd234cafed831b7339391ffa
2011-09-29 10:37:24 -07:00
Brad Fitzpatrick b966e55154 Start of camput files memstat flag, for Issue 18
Change-Id: I2b35bd9ed83e1fb899cf165ad82da95e16d0deba
2011-09-28 19:08:17 -07:00
Brad Fitzpatrick 2ec0a974b6 make camput use schema.WriteFile; add flag to enable rollsum splits
Change-Id: If436f7aa5d8360fbe1aaa07795b326e1eb5066f4
2011-09-28 11:16:51 -07:00
Brad Fitzpatrick c79121e1bc more camput syntax work.
Change-Id: I6d77c8b88c4242168f838ef72a288198f1c197dd
2011-09-26 20:02:35 -07:00
Brad Fitzpatrick 0bfb253381 Merge "blob command for new camput cli" 2011-09-26 16:20:31 +00:00
Brad Fitzpatrick f793ef9cd8 Merge "attr command for new camput cli" 2011-09-26 16:18:55 +00:00
mpl 93da4a48d3 blob command for new camput cli
Change-Id: I7e20119761c0670aa2d01b5f7f38439eddcf4304
2011-09-26 15:57:00 +02:00
mpl 839d8bb858 attr command for new camput cli
Change-Id: I4f3b1231d8817f3874a6a3b499dc364ebd971957
2011-09-26 12:33:30 +02:00
mpl e35f2d0b40 permanode command for new camput cli
Change-Id: I5d5867b196feb4b358cacfaab14f96357134d43b
2011-09-26 12:30:44 +02: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 c3d6526fd1 camput: do directories in parallel, don't deadlock, cleanup, sanitize logging, ...
start of much more work.

Change-Id: I667260895a3f6f1425937189ff9752b18bd6de0d
2011-09-24 17:20:47 -07:00
Brad Fitzpatrick 35231e69f6 shell for camput tests, with TODO of a found bug
Change-Id: Ifc93b4fb0d4ae0e8b84982cb0427d86be4fdae89
2011-09-24 14:15:04 -07:00
Brad Fitzpatrick c8f8f8d59e camput: let tinkerTransport's underlying transport be changed
Change-Id: I0b24d593c27b937c961825442801db4c7031c81d
2011-09-24 14:14:41 -07:00
Brad Fitzpatrick 71ed6f8165 camput: add a 'havecache', like brackup's inventory cache
Change-Id: Ie5399fb08febf685f72d17a51d65962da9a3d32d
2011-09-17 16:59:04 -07:00
Brad Fitzpatrick 6f91469776 camput statcache
Change-Id: I0b469b3497b7ae87f0de039a1398c3102139cdf4
2011-09-17 15:14:37 -07:00
Brad Fitzpatrick 3fbb8487e8 move some debug stuff out of camput into new camdebug
Change-Id: I94c0451b7fabdccdcaff9ae3e5f4097bdb426b78
2011-09-17 12:02:05 -07:00
Brad Fitzpatrick 8c3edb6006 Add missing file from 83a0f2b47c
Change-Id: I8e9b905276bf1e48a378fd88b38884bb9767a5b6
2011-09-17 10:26:32 -07:00
Brad Fitzpatrick 83a0f2b47c some camput work, adding start of a stat cache
Change-Id: I2d4090362a639eed2af6ce02dbaae81f249dfd57
2011-09-16 18:03:13 -07:00
Brad Fitzpatrick e1bb80e41e limit camput concurrency
Change-Id: I7a4806faf99e365e792477af3c5870a2b06a6770
2011-09-16 12:38:03 -07:00
Brad Fitzpatrick d35c4a4ddc minor client/upload changes
Change-Id: I02ec44ff72575e547fee5e44667d648cf06b54f8
2011-09-15 21:52:33 -07: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 b0dda5e86f Various renamings. dropped getTagged.
Change-Id: I20982074071b819110fe07cb795ffcb7d6c8560e
2011-09-04 00:48:49 +02:00
Brad Fitzpatrick 88c89757e1 gofixes for latest Go changes
Change-Id: Ib7b3aea5adff0e1683bcb421cc3549c31d9fe174
2011-08-25 19:14:47 +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
mpl 27c4e677d4 allow comma separated list for tags in camput
I prefer -tag tag1 -tag tag2 better though,
will do later.

Change-Id: I36bbd9d26f1d87bab005381e6ce42e506155abb4
2011-08-08 01:25:36 +02:00
Brad Fitzpatrick 0a2f4b7507 Merge "first cut at a Camlistore WebDAV server" 2011-08-07 01:52:55 +00: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
mpl 7860ecead0 allow on the fly tagging when uploading with camput
Change-Id: Ib4318551f6d020499294362f8c650e11da208eab
2011-08-06 19:29:05 +02: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
mpl 42a60238da added Type test to Superset.NewFileReader (as per TODO)
Change-Id: I2c9b0868e1df65306e978552db2e135c5d623289
2011-07-13 10:52:37 +02: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 024e801ca7 gofmt the whole tree
Change-Id: Ic1b3dd12a4ede83b299dcf51f342e72d4f8700da
2011-07-02 09:09:50 -07:00
Brad Fitzpatrick 15057eec02 Update to Go 8944
Change-Id: I7940180cbe882884286e56ee4fc7bf5589aad9e0
2011-06-29 21:13:03 -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
caine 4b8997ed48 clients/go/camsync: return stats struct and use them in verbose mode
Change-Id: Icb0d86df5dd33f1bbb37112abe8b549c49a3de24
2011-06-15 11:29:51 -04:00
caine f5effec0e5 clients/python: Make ignore patterns into a command-line flag.
Change-Id: I51f65aee97a8187df303a854d53270da12c4aa7c
2011-06-13 18:53:16 -04:00
Brad Fitzpatrick 691273a284 index more about files: filename, properties set, mime type 2011-06-11 10:55:35 -07:00
Amir Mohammad Saied 6465ab5c37 Android: Make sure application does not force close if server:port is not set 2011-06-10 12:10:43 -07:00