Versions in this module Expand all Collapse all v0 v0.9.0 Apr 19, 2021 Changes in this version + var ErrNotDir = errors.New("not a directory") + var OperationColored = map[Operation]string + func IsS3Url(location *string) bool + func SplitS3Url(location *string) (string, string, error) + type Client struct + func NewFromConfig(cfg aws.Config, log *log.Logger, region string) *Client + func (s3 *Client) PrepareSync(params *PrepareSyncInput) (*PreparedSync, error) + func (s3 *Client) Sync(ctx context.Context, params *SyncInput, optFns ...func(*awss3.Options)) (*SyncOutput, error) + type ExecuteInput struct + ACL types.ObjectCannedACL + Bucket *string + BucketKeyEnabled bool + BypassGovernanceRetention bool + CacheControl *string + ContentDisposition *string + ContentEncoding *string + ContentLanguage *string + ContentLength int64 + DryRun bool + ExpectedBucketOwner *string + Expires *time.Time + GrantFullControl *string + GrantRead *string + GrantReadACP *string + GrantWriteACP *string + MFA *string + Metadata map[string]string + ObjectLockLegalHoldStatus types.ObjectLockLegalHoldStatus + ObjectLockMode types.ObjectLockMode + ObjectLockRetainUntilDate *time.Time + RequestPayer types.RequestPayer + SSECustomerAlgorithm *string + SSECustomerKey *string + SSECustomerKeyMD5 *string + SSEKMSEncryptionContext *string + SSEKMSKeyId *string + ServerSideEncryption types.ServerSideEncryption + StorageClass types.StorageClass + Tagging *string + type FileInfo struct + Base string + Exists bool + Key string + LastModified time.Time + Size int64 + type Operation string + const OperationDelete + const OperationIgnore + const OperationUpload + type PrepareSyncInput struct + Destination *string + ForceUpload bool + KeyPrefix *string + Source *string + Verbose bool + type PreparedSync struct + ForceUpload bool + Verbose bool + func (ps *PreparedSync) Add(params *PrepareSyncInput) error + func (ps *PreparedSync) Execute(ctx context.Context, params *ExecuteInput, optFns ...func(*awss3.Options)) (*SyncOutput, error) + type SyncFileInfo struct + Destination FileInfo + ForceUpload bool + Key string + Source FileInfo + Verbose bool + func (sfi *SyncFileInfo) Op() (Operation, string) + func (sfi *SyncFileInfo) OpColored() (string, string) + func (sfi *SyncFileInfo) String() string + type SyncInput struct + type SyncOutput struct + Changes int + Files []*SyncFileInfo