()
| 466 | } |
| 467 | |
| 468 | func (obj *object) s3Key() Key { |
| 469 | return Key{ |
| 470 | Key: obj.name, |
| 471 | LastModified: obj.mtime.Format(timeFormat), |
| 472 | Size: int64(len(obj.data)), |
| 473 | ETag: fmt.Sprintf(`"%x"`, obj.checksum), |
| 474 | // TODO StorageClass |
| 475 | // TODO Owner |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | // DELETE on a bucket deletes the bucket if it's not empty. |
| 480 | func (r bucketResource) delete(a *action) interface{} { |