Commit Graph
21 Commits
Author SHA1 Message Date
Rohan a9d0bbf9a8 feat: add support for FilePut 2021-12-29 13:59:45 +05:30
Rohan Verma eac235b2b6 feat: add support for FileDetails/HEAD API call (#14) 2021-07-19 13:41:36 +05:30
Joice 2a57ff9944 feat: Adds support for custom metadata (#13)
* feat: Adds support for custom metadata

assigning metadata for files will be beneficial to
find files.
ref: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html

* fix: review suggestions by @rhnvrm

- metadata moved to UploadInput as optional field.
- changed x-amz-meta as constant
- changed sprintf to simple string concat

* FIX: changed amazon meta prefix

changed variable name for amazon meta prefix to the top,
prefix variable is exported.
removed redundant comment for metadata
2021-07-19 12:46:49 +05:30
Rohan Verma 35d7b10832 fix: minor doc changes 2021-07-19 12:33:48 +05:30
Jack Henschel bf02e3bacf fix: Ensure trailing slash in CustomEndpoint is handled gracefully 2021-02-03 17:48:04 +02:00
Jack Henschel ce1c250422 fix: Modify getURL method to correctly support special characters
fixes https://github.com/rhnvrm/simples3/issues/7
2021-02-03 17:47:51 +02:00
Rohan Verma 7be0d9e563 feat: Content Disposition and ACL support
This commit adds two extra fields to the upload input
to add support for setting Content-Disposition and the
x-amz-acl params.
2021-01-27 09:20:07 +05:30
Jack Henschel 2c7094bdb6 Allow user to specify protocol for custom endpoint
In local setups, such as a Minio [1] instance in a Docker container,
the protocol may not always be HTTPS (like for public production
endpoints), but instead just plain HTTP.
To support this use-case, the user can specify a protocol at the
beginning of the custom endpoint URI (either http:// or https://).

To maintain backwards compatibility, the protocol defaults to HTTPS.

The patch also includes a test case to assert this behavior.

[1] https://hub.docker.com/r/minio/minio
2020-09-15 09:04:34 +02:00
jibin jose 2a542b05fe Fix: Add X-Amz-Security-Token to presigned url (#4)
Include the x-amz-security-token if signed with temporary credentials.

Ref:https://stackoverflow.com/questions/49306621/how-secret-is-the-session-token-in-aws-temporary-security-credentials/49344291#49344291
2020-04-13 16:44:33 +05:30
Rohan Verma 089155520f feat: adds download file 2020-01-03 16:32:19 +05:30
Rohan Verma aba89e779a refactor: minor doc changes 2019-12-11 13:54:46 +05:30
Liut 9a5e82a977 Add Endpoint for some compatible instance and fix time format (#3)
* Add Endpoint for some compatible instance.

* Fix: InvalidExpiration
* Fix: RequestTimeTooSkewed

Compatible s3: https://developer.qiniu.com/kodo/manual/4088/s3-access-domainname

* - clean code

* Fix: InvalidExpiration
2019-12-11 07:53:05 +00:00
Rohan Verma 3d5b071ef7 fix: change multipart.File -> io.ReadSeeker 2019-10-18 13:15:03 +05:30
Rohan Verma f3fc241849 fix: decouple http client from library 2019-01-15 16:27:02 +05:30
Rohan Verma f50dc493f8 test: NewUsingIAM mock 2018-12-28 14:59:45 +05:30
Rohan Verma c3e6335634 fix: Delete credentials unsupported authorization type 2018-12-26 15:44:16 +05:30
Rohan Verma 8079b244c7 feat: read response from 201 on file upload 2018-12-26 13:36:35 +05:30
Rohan Verma e4c7d93da1 Update readme and docstrings, minor refactors. 2018-12-24 17:31:36 +05:30
Rohan Verma d218b23f05 feat: Presigned URLs 2018-12-24 13:36:29 +05:30
Rohan Verma 157aa88554 docs: Add missing docstrings 2018-12-06 16:48:37 +05:30
Rohan Verma f30c5f9052 init 2018-12-06 15:54:47 +05:30