Documentation ¶
Index ¶
Constants ¶
View Source
const ErrNoSuchKey = "ITEM_NOT_FOUND"
Variables ¶
This section is empty.
Functions ¶
func InitUploader ¶
func InitUploader(svc interface{}, partSize int64) interface{}
func NewS3Client ¶
Types ¶
type UploadFileResponse ¶
type UploadFileResponse struct { Location string `json:"location"` VersionID string `json:"version_id"` UploadID string `json:"upload_id"` ETag string `json:"etag"` }
UploadFileResponse contains the data returned by the S3 Upload operation.
func UploadFile ¶
func UploadFile(uploader interface{}, bucket, key string, file io.Reader, publicRead bool) (UploadFileResponse, error)
UploadFile uploads a new file to the given S3 bucket.
Click to show internal directories.
Click to hide internal directories.