Commit Graph

253 Commits

Author SHA1 Message Date
Brad Fitzpatrick 27ddde1db4 Add caching of decrypted entity private keys. 2011-05-16 14:35:38 -07:00
Brad Fitzpatrick e6c65b0cdc camput: allow --name with --permanode 2011-05-16 11:37:14 -07:00
Brad Fitzpatrick ca19b8ddaa jsonsign: use Go's openpgp library; don't shell out to gpg 2011-05-16 09:01:35 -07:00
Brad Fitzpatrick fe6ec65da5 camput: ask jsonsign to enable some of its flags 2011-05-15 21:54:31 -07:00
Brad Fitzpatrick 480350936e Revert "Work around Go http bug with zero length files."
This reverts commit 1e7ff7b46c.

Fixed with: http://codereview.appspot.com/4529050
2011-05-11 04:59:45 -07:00
Brad Fitzpatrick 1e7ff7b46c Work around Go http bug with zero length files. 2011-05-10 19:29:20 -07:00
Brad Fitzpatrick 257e550740 use blobref.SizedBlobRef as a value, not a mutable *blobref.SizedBlobRef on heap 2011-05-10 16:13:37 -07:00
Brad Fitzpatrick bed26de507 Cleanup: remove partitions from interfaces. WIP but compiles.
Still need to fix up blobhub notification for localdisk
mirroring, since now localdisk can't find the notification
hub for mirrored partitions.  (and also can't be configured
yet)
2011-05-09 09:11:18 -07:00
Brad Fitzpatrick cc12a8788b Add camdbinit tool, convert from Perl to Go. 2011-05-01 18:21:22 -07:00
Brad Fitzpatrick c56f82c5dd Updates for Go Open changes. 2011-04-07 10:58:29 -07:00
Brad Fitzpatrick 2a61dcfd9e Put some path-related stuff in camli/osutil 2011-04-01 22:26:33 -07:00
Brad Fitzpatrick ca1f8f16ad cammount: add fuse mtime/atime/ctime 2011-03-29 10:40:50 -07:00
caine tighe cfe1c269cb clients/go/cammount: add \n to usage prompt 2011-03-28 14:58:46 -04:00
Daniel Erat 64040340c3 android: Return copies of cached blobs instead of originals.
This should fix
http://code.google.com/p/camlistore/issues/detail?id=3,
"Android client permits mutating the immutable cache".

I'm also removing the call to
URLConnection.guessContentTypeFromStream() in favor of
just using URLConnection.guessContentTypeFromName().
I don't think that the former was ever successful, and it
was hitting the disk from the UI thread.
2011-03-27 14:19:48 -07:00
Daniel Erat 58c678e94e android: add icons for files and directories
trying to get the hang of making stuff in inkscape that
doesn't look awful
2011-03-27 12:07:06 -07:00
Daniel Erat a1d768f46d Merge remote branch 'origin/master' 2011-03-27 12:05:07 -07:00
Brad Fitzpatrick 00a8985afd LRU on FUSE GetAttr too. 2011-03-25 21:36:52 -07:00
Brad Fitzpatrick 48715cb80f cammount: less spammy 2011-03-25 21:28:47 -07:00
Brad Fitzpatrick ddc810a3d0 cammount: LRU caching on various operations 2011-03-25 21:21:24 -07:00
Brad Fitzpatrick 7c1e08c55f Start of simple camli/lru class for fuse caches. 2011-03-25 18:58:14 -07:00
Brad Fitzpatrick 912a5a304c fuse readlink support 2011-03-25 18:36:08 -07:00
Brad Fitzpatrick 054cd642ea cammount: read-only FUSE works now 2011-03-24 21:07:49 -07:00
Brad Fitzpatrick 8302903eb0 camsync: use FetchStreaming, not Fetch 2011-03-24 19:58:52 -07:00
Brad Fitzpatrick f12b7f5342 Have CamliFileSystem take a Fetcher, not a Client 2011-03-24 19:58:29 -07:00
Brad Fitzpatrick 0e51761bbd camget: only require a ReadCloser. 2011-03-24 19:21:35 -07:00
Brad Fitzpatrick 4b5380a8aa gofmt 2011-03-24 19:20:22 -07:00
Brad Fitzpatrick a785d945f8 fix camput compile error from earlier change 2011-03-24 16:34:22 -07:00
Brad Fitzpatrick 3db542645c schema/fuse file reading, but still buggy in parts 2011-03-24 15:33:15 -07:00
Brad Fitzpatrick a8739674e1 cammount: Start of Open and file ops 2011-03-23 22:04:50 -07:00
Brad Fitzpatrick 1d0baaade8 cammount: working OpenDir! 2011-03-23 20:51:47 -07:00
Brad Fitzpatrick b366f7c699 cammount: more working Opendir 2011-03-23 19:57:40 -07:00
Brad Fitzpatrick 6ce55da2f4 Update to go-fuse 142724315 2011-03-23 19:14:04 -07:00
Brad Fitzpatrick 367d4d7bef cammount: more FUSE work; kinda-working Opendir 2011-03-22 22:59:45 -07:00
Brad Fitzpatrick 9771c314e3 cammount: more FUSE work: basic GetAttr support 2011-03-22 22:32:11 -07:00
Brad Fitzpatrick 0707a092e0 cammount: more FUSE work, inode lookup 2011-03-22 22:11:27 -07:00
Brad Fitzpatrick bd40289c88 cammount work commit before battery dies 2011-03-22 20:35:04 -07:00
Brad Fitzpatrick 36e3c016c2 cammount fuse shell 2011-03-22 20:11:07 -07:00
Daniel Erat 46870bdbdc android: use a custom adapter in BrowseActivity
no user-visible changes
2011-03-20 13:03:16 -07:00
Brad Fitzpatrick 43d058ae77 Merge commit '7262d8a' 2011-03-20 10:25:23 -07:00
Brad Fitzpatrick 7332f1aa71 cammount: start with hanwen's example loopback fuse program. 2011-03-20 10:25:17 -07:00
Daniel Erat 7262d8a736 android: verify downloaded data against digests from blobrefs 2011-03-19 17:06:33 -07:00
Daniel Erat 94bd0ec0c8 android: avoid caching incomplete downloads
when the Content-Length header is supplied, this makes us
check that we received the expected number of bytes.  tested
by ctrl-c-ing the blobserver midway through a download.
2011-03-19 15:49:46 -07:00
Daniel Erat 85a7f38a87 android: limit cache growth
this is lightly-tested but seems to work.
the non-new stuff in res/ is just whitespace cleanup.
2011-03-19 12:15:19 -07:00
Daniel Erat ec2c41604c Merge remote branch 'origin/master' 2011-03-19 09:16:50 -07:00
Daniel Erat a29346265e android: add DownloadCache class
cache-size-limiting code is untested and unused
2011-03-19 08:20:44 -07:00
Brad Fitzpatrick 184afbc2a3 Auto-generate Go Makefiles.
Dependencies are now only in one place (in source code, enforced for correctness by Go)
instead of three places.
2011-03-19 00:27:03 -07:00
Brad Fitzpatrick ae608c6a8c Automatic go dependency inference; phase 1.
Next phaes will auto-gen makefiles.
2011-03-18 22:33:43 -07:00
Brad Fitzpatrick 816b7ee957 android: https support 2011-03-17 18:41:37 -07:00
Brad Fitzpatrick 077f362e2d android: add tips when SDK isn't configured. 2011-03-17 18:15:25 -07:00
Daniel Erat 78c6b71b87 android: lots of improvements to download service
- don't write search results to disk
- download into memory before writing to disk when
  we have listeners asking for byte arrays
- don't read files while holding the lock
2011-03-17 08:36:43 -07:00
Daniel Erat a8f4774752 android: download files to temporary location
also fix lame inverted-logic bug in cache-checking code :-(
2011-03-16 22:49:42 -07:00
Daniel Erat 406433a138 android: add synchronization-related asserts 2011-03-16 22:25:21 -07:00
Daniel Erat 7d199b97bd android: add missing final to EntryType.mName 2011-03-16 06:55:36 -07:00
Daniel Erat e1f34760cc android: yay, basic file viewing appears to work!
(for simple, single-part files)
2011-03-15 22:43:39 -07:00
Daniel Erat 190f1ef9c6 android: start improving handling of different types of entries 2011-03-15 22:14:39 -07:00
Daniel Erat b1ff0bff7f android: wip: add DirectoryEntry class 2011-03-15 21:46:25 -07:00
Daniel Erat 5b1461747d android: move some methods around in BrowseActivity 2011-03-15 21:21:02 -07:00
Daniel Erat 23201b97a5 Merge remote branch 'origin/master' into download
Conflicts:
	clients/android/src/org/camlistore/BrowseActivity.java
	clients/android/src/org/camlistore/DownloadService.java
2011-03-15 20:48:02 -07:00
Daniel Erat 47cd707d61 android: use cached blobs 2011-03-15 20:36:08 -07:00
Daniel Erat cd53b3d4a0 android: make DownloadService check for searches itself 2011-03-15 07:58:20 -07:00
Daniel Erat 509bd14bf5 android: add custom browse row layout 2011-03-15 07:11:51 -07:00
Brad Fitzpatrick 970b8e6971 Merge branch 'master' of camlistore.org:camlistore 2011-03-13 22:22:01 -07:00
Brad Fitzpatrick f533c80b52 camput --add-attr and --set-attr support 2011-03-13 22:21:58 -07:00
Daniel Erat 59775de756 android: refactor download listeners 2011-03-13 22:15:11 -07:00
Daniel Erat c7b9393699 android: browsing support 2011-03-13 20:30:35 -07:00
Daniel Erat 43f113183c rename clients/android/uploader to clients/android
also change package from com.danga.camli to org.camlistore
2011-03-13 13:09:56 -07:00
Brad Fitzpatrick bf8f379771 camput: create permanode and claims when uploading a directory 2011-03-12 19:28:18 -08:00
Brad Fitzpatrick 6316a765fc Start of camput creating permanodes / claims. 2011-03-12 13:10:56 -08:00
Brett Slatkin fe05a77b07 gofmt cleanup 2011-03-05 13:44:11 -08:00
Brett Slatkin 02a3466192 adds -remove to camput 2011-03-05 13:43:24 -08:00
Brett Slatkin 16c672506b implemented go client.RemoveBlobs; no idea if it works yet 2011-03-05 12:46:28 -08:00
Brad Fitzpatrick 4de2eb4ebd Start of Client.Remove for de-queue in camsync. 2011-03-05 11:34:12 -08:00
Brad Fitzpatrick cafaec5dc8 more sync work; start of loop and queue removal 2011-03-05 09:53:51 -08:00
Brad Fitzpatrick bc7340d7e7 sync: move to library, add tests, fix merge bug 2011-03-05 09:00:56 -08:00
Brad Fitzpatrick 4d8f10208a camsync: it now syncs 2011-03-04 19:02:26 -08:00
Brad Fitzpatrick 38a85571ca Add dev-blobserver wrapper; remove run.sh 2011-03-02 21:46:07 -08:00
Brad Fitzpatrick 7381cbf4d1 More camsync work. 2011-03-02 20:03:09 -08:00
Brad Fitzpatrick ad37f29ce3 start of camsync & indexing; add Client.EnumerateBlobs 2011-03-01 18:02:01 -08:00
Brad Fitzpatrick b0f8f29bca Fix copyright license. 2011-03-01 08:29:44 -08:00
Brad Fitzpatrick 73587e6085 Rename the blobserver 'preupload' method to 'stat'
This is prep for more additions to stat.
2011-02-08 08:24:16 -08:00
Brad Fitzpatrick c4c04e7550 Add Android client to build.pl 2011-02-03 17:40:53 -08:00
Amir Mohammad Saied d6488c32c4 Making the codebase compatible with latest Go release (2011-02-01.1) 2011-02-02 12:27:30 -08:00
Amir Mohammad Saied ecb1fb0a8e android: Moving menu items titles into the strings resource, and setting icons for them 2011-02-01 12:28:29 -08:00
Amir Mohammad Saied 759700e963 android: Cosmetics, moving all text into string resources 2011-02-01 12:27:55 -08:00
Brad Fitzpatrick 8673270a76 Slap on copyright headers; java + aidl. 2011-01-27 23:10:13 -08:00
Brad Fitzpatrick f7d76303e7 Slap on copyright headers. 2011-01-27 23:07:18 -08:00
Brad Fitzpatrick 3bcba74f41 Fix copyright lines.
Put this under Google's copyright, not our personal ones.
2011-01-27 23:03:57 -08:00
Brett Slatkin f5758f6c68 adds "share" camli object schema; support for camput --share 2011-01-25 22:44:03 -08:00
Brett Slatkin 02717908ef adds -via to camget; adds -reqlog to blobserver 2011-01-25 21:34:17 -08:00
Brett Slatkin 5e4128c285 separates python library from example client 2011-01-21 11:29:14 -08:00
Brad Fitzpatrick 6e4f9a17d7 Actually upload permanode; clean up config, uploading, signing, logging 2011-01-18 10:29:38 -08:00
Brad Fitzpatrick 3eaf825674 camput --init; First-time config helper. 2011-01-17 18:28:38 -08:00
Brad Fitzpatrick c761e1afc8 Create & sign permanodes. 2011-01-16 21:16:54 -08:00
Brad Fitzpatrick 6520da3e46 add deps 2011-01-16 20:59:13 -08:00
Brett Slatkin ae8370ae2c Python client: Adds get_blobs; command-line get, put, and putdir cleaned up and working; wrote pydocs 2011-01-16 14:26:00 -08:00
Brad Fitzpatrick 01ff846557 Start of camput --permanode 2011-01-15 18:10:58 -08:00
Andrew Gerrand 92c05450b5 implemented rudimentary camget 2011-01-15 12:25:37 +11:00
Brad Fitzpatrick 3688b24274 Fix gitignore file 2011-01-04 15:02:50 -08:00
Brad Fitzpatrick da7faf94a3 Start of camget; merge clientconfig and camput into new client library 2011-01-02 14:36:03 -08:00
Brad Fitzpatrick 0a4e49a3d0 less debug spew 2011-01-01 19:37:50 -08:00