Documentation
¶
Index ¶
- Constants
- func CompareChecksum(headObjectOutput *s3.HeadObjectOutput, filename string, opts options.Options)
- func GetCRC32CChecksum(headObjectOutput *s3.HeadObjectOutput) (uint32, error)
- func IsLocalDirectory(path string) (bool, error)
- func IsS3Directory(client *s3.S3, bucket string, key string) (bool, error)
- func IsS3Path(path string) bool
- func S3PathToBucketAndKey(s3path string) (string, string, error)
Constants ¶
View Source
const Crc32cChecksumMetadataName = "Crc32c-Checksum"
Crc32cChecksumMetadataName is the name of the metadata field to store the crc32c checksum
This capitalization is critical to the implementation please do not change it if you write metadata with different capitalization s3 will fuse it with the existing value of the same name instead of overwriting.
Variables ¶
This section is empty.
Functions ¶
func CompareChecksum ¶
func CompareChecksum(headObjectOutput *s3.HeadObjectOutput, filename string, opts options.Options)
CompareChecksum compares an s3 object's checksum from metadata with a file's checksum
func GetCRC32CChecksum ¶
func GetCRC32CChecksum(headObjectOutput *s3.HeadObjectOutput) (uint32, error)
GetCRC32CChecksum gets the crc32c checksum from the metadata of an s3 object
func IsLocalDirectory ¶
IsLocalDirectory checks if a local path is to a directory
func IsS3Directory ¶
IsS3Directory checks if an s3 path is a directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.