Start of s3 stat/receive.

This commit is contained in:
Brad Fitzpatrick 2011-04-03 19:59:46 -07:00
parent 87d749f781
commit f9d167d9cc
2 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,34 @@
/*
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package s3
import (
"io"
"log"
"os"
"camli/blobref"
"camli/blobserver"
//"camli/misc/amazon/s3"
)
var _ = log.Printf
func (s3 *s3Storage) ReceiveBlob(blob *blobref.BlobRef, source io.Reader, mirrorPartions []blobserver.Partition) (*blobref.SizedBlobRef, os.Error) {
log.Printf("want to upload to s3: %s", blob)
return nil, os.NewError("no s3 upload")
}

View File

@ -0,0 +1,37 @@
/*
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package s3
import (
"log"
"os"
"camli/blobref"
"camli/blobserver"
//"camli/misc/amazon/s3"
)
var _ = log.Printf
func (s3 *s3Storage) Stat(dest chan *blobref.SizedBlobRef,
partition blobserver.Partition,
blobs []*blobref.BlobRef,
waitSeconds int) os.Error {
// TODO: implement
return nil
}