MCPcopy Create free account
hub / github.com/aptly-dev/aptly / s3Key

Method s3Key

s3/server_test.go:468–477  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466}
467
468func (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.
480func (r bucketResource) delete(a *action) interface{} {

Callers 1

getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected