Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiPartUpload ¶
func MultiPartUpload(input MultiPartUploadInput) error
MultiPartUpload uploads a local file in multiple parts to AWS S3
Types ¶
type MultiPartUploadInput ¶
type MultiPartUploadInput struct { Svc *s3.S3 // Required: An AWS S3 session service for the upload Ctx context.Context // Required: The context for this request CtxTimeout time.Duration // Optional: The request will time out after this duration (defaults to 60 minutes) MaxConcurrent int // Optional: The number of concurrent part uploads (defaults to 10) PartSize int64 // Optional: Number of bytes (defaults to 8MB) Filepath string // Required: A full path to a local file to PUT to S3 DestinationBucket string // Required: The destination S3 bucket's name DestinationKey string // Required: The destination path in the bucket to put the file Logger *slog.Logger // Optional: Handles logging if supplied }
MultiPartUploadInput holds the inputs for a multipart upload
type MultiPartUploadResult ¶
type MultiPartUploadResult struct { Error error Part *s3.CompletedPart }
MultiPartUploadResult holds the result for an individual part upload
Click to show internal directories.
Click to hide internal directories.