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”.
17948 17949 17950 |
// File 'service/s3/api.go', line 17948
|
func (s *Object) SetETag(v string) *Object
SetETag sets the ETag field's value.
17953 17954 17955 17956 |
// File 'service/s3/api.go', line 17953
|
func (s *Object) SetKey(v string) *Object
SetKey sets the Key field's value.
17959 17960 17961 17962 |
// File 'service/s3/api.go', line 17959
|
func (s *Object) SetLastModified(v time.Time) *Object
SetLastModified sets the LastModified field's value.
17965 17966 17967 17968 |
// File 'service/s3/api.go', line 17965
|
func (s *Object) SetOwner(v *Owner) *Object
SetOwner sets the Owner field's value.
17971 17972 17973 17974 |
// File 'service/s3/api.go', line 17971
|
func (s *Object) SetSize(v int64) *Object
SetSize sets the Size field's value.
17977 17978 17979 17980 |
// File 'service/s3/api.go', line 17977
|
func (s *Object) SetStorageClass(v string) *Object
SetStorageClass sets the StorageClass field's value.
17983 17984 17985 17986 |
// File 'service/s3/api.go', line 17983
|
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”.
17939 17940 17941 |
// File 'service/s3/api.go', line 17939
|