Commit Graph

3 Commits

Author SHA1 Message Date
tnt 5d8eeb534b Fixed wrong calls to formatting functions.
E.g: fmt.Println("%s", "hello world") -> fmt.Printf("%s", "hello world")

Change-Id: I51c0bd54c14173e074fafd86c83a5287fcdb1520
2014-06-30 22:05:22 +02:00
Brad Fitzpatrick bf94a73859 Get rid of SeekFetcher vs StreamingFetcher distinction and complexity.
StreamingFetcher is now just Fetcher, and its FetchStreaming is now
just Fetch.

SeekFetcher is gone. Blobs are max 16 MB anyway, so we can slurp to
memory when needed. The main thing that cared about SeekFetcher
was the GET handler, ServeBlobref, because http.ServeContent needed
one for range requests. That's rewritten in an earlier commit, using
the FakeSeeker from another earlier commit.

Lot of code got simpler as a result.

Change-Id: Ib819413e48a8f9b8d97f596d0fbf771dab211f11
2014-03-14 12:29:13 -07:00
Brad Fitzpatrick 1b1087a830 Add pkg/blobserver/archiver for making Glacier archives.
From the package docs:

  Package archiver zips lots of little blobs into bigger zip files
  and stores them somewhere. While generic, it was designed to
  incrementally create Amazon Glacier archives from many little
  blobs, rather than creating millions of Glacier archives.

Change-Id: If304b2d4bf144bfab073c61c148bb34fa0be2f2d
2014-02-07 14:32:36 -08:00