Struct: s3.Object
Overview
An object consists of data and its descriptive metadata.
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
ETag *string
The entity tag is a hash of the object.
-
Key *string
The name that you assign to an object.
-
LastModified *time.Time
Creation date of the object.
-
Owner *Owner
The owner of the object.
-
Size *int64
Size in bytes of the object.
-
StorageClass *string
The class of storage used to store the object.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetETag(string) *Object
operation
SetETag sets the ETag field's value.
-
SetKey(string) *Object
operation
SetKey sets the Key field's value.
-
SetLastModified(time.Time) *Object
operation
SetLastModified sets the LastModified field's value.
-
SetOwner(*Owner) *Object
operation
SetOwner sets the Owner field's value.
-
SetSize(int64) *Object
operation
SetSize sets the Size field's value.
-
SetStorageClass(string) *Object
operation
SetStorageClass sets the StorageClass field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
ETag *string
`type:"string"`
The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.
-
Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.
-
If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.
Key *string
`min:"1" type:"string"`
The name that you assign to an object. You use the object key to retrieve the object.
LastModified *time.Time
`type:"timestamp"`
Creation date of the object.
Owner *Owner
`type:"structure"`
The owner of the object
Size *int64
`type:"integer"`
Size in bytes of the object
StorageClass *string
`type:"string" enum:"ObjectStorageClass"`
The class of storage used to store the object.
_ struct{}
`type:"structure"`
Method Details
func (s Object) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
18185 18186 18187 |
// File 'service/s3/api.go', line 18185
|
func (s *Object) SetETag(v string) *Object
SetETag sets the ETag field's value.
18190 18191 18192 18193 |
// File 'service/s3/api.go', line 18190
|
func (s *Object) SetKey(v string) *Object
SetKey sets the Key field's value.
18196 18197 18198 18199 |
// File 'service/s3/api.go', line 18196
|
func (s *Object) SetLastModified(v time.Time) *Object
SetLastModified sets the LastModified field's value.
18202 18203 18204 18205 |
// File 'service/s3/api.go', line 18202
|
func (s *Object) SetOwner(v *Owner) *Object
SetOwner sets the Owner field's value.
18208 18209 18210 18211 |
// File 'service/s3/api.go', line 18208
|
func (s *Object) SetSize(v int64) *Object
SetSize sets the Size field's value.
18214 18215 18216 18217 |
// File 'service/s3/api.go', line 18214
|
func (s *Object) SetStorageClass(v string) *Object
SetStorageClass sets the StorageClass field's value.
18220 18221 18222 18223 |
// File 'service/s3/api.go', line 18220
|
func (s Object) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
18176 18177 18178 |
// File 'service/s3/api.go', line 18176
|