From 7153fb48e7917262e13035db5957f647f3d7b088 Mon Sep 17 00:00:00 2001 From: Brenna Epp Date: Wed, 11 Aug 2021 13:11:48 -0500 Subject: [PATCH 1/2] Add note to Bucket.Object --- storage/bucket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/bucket.go b/storage/bucket.go index 8066c708e405..f09657f99a69 100644 --- a/storage/bucket.go +++ b/storage/bucket.go @@ -131,6 +131,7 @@ func (b *BucketHandle) DefaultObjectACL() *ACLHandle { // Object returns an ObjectHandle, which provides operations on the named object. // This call does not perform any network operations. +// The object is only created in the bucket (if it does not already exist) once you write to the object. // // name must consist entirely of valid UTF-8-encoded runes. The full specification // for valid object names can be found at: From 14242f9c617a585115dc1dd40f56569a82a0efde Mon Sep 17 00:00:00 2001 From: Brenna Epp Date: Fri, 27 Aug 2021 13:47:42 -0500 Subject: [PATCH 2/2] incorporate suggestions --- storage/bucket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/bucket.go b/storage/bucket.go index f09657f99a69..602c85128565 100644 --- a/storage/bucket.go +++ b/storage/bucket.go @@ -130,8 +130,8 @@ func (b *BucketHandle) DefaultObjectACL() *ACLHandle { } // Object returns an ObjectHandle, which provides operations on the named object. -// This call does not perform any network operations. -// The object is only created in the bucket (if it does not already exist) once you write to the object. +// This call does not perform any network operations such as fetching the object or verifying its existence. +// Use methods on ObjectHandle to perform network operations. // // name must consist entirely of valid UTF-8-encoded runes. The full specification // for valid object names can be found at: