예제 #1
0
파일: camput.go 프로젝트: marsch/camlistore
func (up *Uploader) UploadShare(target *blobref.BlobRef, transitive bool) (*client.PutResult, os.Error) {
	unsigned := schema.NewShareRef(schema.ShareHaveRef, target, transitive)

	signed, err := up.SignMap(unsigned)
	if err != nil {
		return nil, err
	}

	return up.Upload(client.NewUploadHandleFromString(signed))
}
예제 #2
0
파일: share.go 프로젝트: ipeet/camlistore
func (up *Uploader) UploadShare(target *blobref.BlobRef, transitive bool) (*client.PutResult, os.Error) {
	unsigned := schema.NewShareRef(schema.ShareHaveRef, target, transitive)
	return up.UploadAndSignMap(unsigned)
}