s3utils

package
v0.0.14-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func IsLocalDirectory(path string) (bool, error)

IsLocalDirectory checks if a local path is to a directory

func IsS3Directory

func IsS3Directory(client *s3.S3, bucket string, key string) (bool, error)

IsS3Directory checks if an s3 path is a directory

func IsS3Path

func IsS3Path(path string) bool

IsS3Path checks whether a string is an s3 path

func S3PathToBucketAndKey

func S3PathToBucketAndKey(s3path string) (string, string, error)

S3PathToBucketAndKey converts an s3 path into it's bucket and key

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL