1
0
mirror of https://github.com/mariadb-corporation/libmarias3.git synced 2025-09-13 10:46:29 +03:00

12 Commits

Author SHA1 Message Date
Andrew Hutchings
70b9a93fd6 Fix building
* RTD theme no longer builds with latest Sphinx. This updates it.
* Fix types based docs compile issues.
* Fix compiler warning not seeing a size check.
2024-09-10 13:45:32 +03:00
Alexey Antipovsky
f74150b056 feat(curl,timeouts): MCOL-5785: Add functionality to set curl timeouts (#117) 2024-08-08 15:40:43 +03:00
Markus Mäkelä
d2dcab4e95 Add custom callback mechanism (#113)
* Allow custom read callbacks to be used

This allows handling of data in smaller chunks if the ms3_get result is
too large to fit into memory.

* Use the configured buffer size in curl

This way the chunks that curl will return will be the same size that the
internal buffer will be. For the custom read callback, this will allow
the data to be handled in smaller chunks.

* Fix copyright year in read_cb.c

The year is 2023.
2023-06-26 15:13:43 +03:00
Andrew Hutchings
a3523c694a Revert "Remove domain bucket access method"
This reverts commit 7a02ffa83c.
2019-10-31 16:19:01 +00:00
Andrew Hutchings
7a02ffa83c Remove domain bucket access method
"Buckets created in Regions launched after March 20, 2019 are not
reachable via the https://bucket.s3.amazonaws.com naming scheme."

This patch enhances the one Markus wrote to just completely remove the
domain based access method.
2019-10-30 11:32:42 +00:00
Andrew Hutchings
9121dad663 Fix S3 compatible compatibility
* Fix path based access
* Improved autodetection of type of method to use
2019-06-26 15:36:46 +01:00
Andrew Hutchings
e850cd25b9 Fix warnings and add force protocol option
Add the warning -Wdeclaration-after-statement and fix everything it
finds.

Add MS3_OPT_FORCE_PROTOCOL_VERSION to ms3_set_option() with a test to
force protocol version when the autodetection does the wrong thing.
2019-05-31 15:22:51 +01:00
Andrew Hutchings
598c364742 Cleanups for removing C99 support and 3.0 release
* Remove bool from public interface
* Fix CLang compiling
* Remove deprecated functions
* Bump version

Fixes mariadb-corporation/libmarias3#51
2019-05-13 10:18:44 +01:00
Andrew Hutchings
2f818d5904 Add ms3_list_dir()
This function acts like ms3_list() but only looks in the prefix up to
the first slash and includes directory names.

Also remove the 1MB lower limit on chunk size
2019-05-07 12:01:13 +01:00
Andrew Hutchings
c5d3f728ee Add V1 bucket list API support
* Will use V1 by default for non-Amazon S3 servers
* V1 or V2 can be forced using ms3_set_option()
* Updated tests to test for both
* Set version and ABI version correctly
2019-03-29 09:37:16 +00:00
Andrew Hutchings
cf300d35ca Add ms3_set_option() and several options
* Add ms3_set_option() API call
* Add options for http:// instead of https://, disabling SSL
verification and buffer chunk size.
* Deprecated ms3_buffer_chunk_size() (use ms3_set_option() instead)
* Added server/curl error messages to debugging output
2019-03-29 08:35:58 +00:00
Andrew Hutchings
1c1840dbe0 First version dump 2019-03-22 08:00:38 +00:00