Commit Graph

106 Commits

Author SHA1 Message Date
Aditya Manthramurthy
e8a75a8fdb Add bucket and object name validation (#45) 2017-03-28 16:27:23 +05:30
Krishnan Parthasarathi
9358d28d3b Fix hlint warnings and suggestions (#44) 2017-03-25 15:56:51 +05:30
Krishnan Parthasarathi
b30beecd52 Add bucketExists and headBucket APIs (#42)
Also fixed examples to work with lts-8.5
2017-03-23 15:57:52 +05:30
Aditya Manthramurthy
3281f2a912 Switch to Stackage LTS 8.5
- Bump up version in cabal for release.
2017-03-17 14:57:50 +05:30
Aditya Manthramurthy
d378d7a255 Remove extra stack file 2017-03-17 14:54:26 +05:30
Krishnan Parthasarathi
3d6d2d5d61 Make minio-hs build with lts-8.5 (#33) 2017-03-17 14:53:24 +05:30
Aditya Manthramurthy
aba4053965 Bump up version in cabal file 2017-03-16 18:16:29 +05:30
Krishnan Parthasarathi
e835e6ed72 Make FileUploader to use positional argument. (#32) 2017-03-16 18:05:15 +05:30
Aditya Manthramurthy
06542032ac Add a changelog file 2017-03-16 18:04:26 +05:30
Krishnan Parthasarathi
a78d2bf39a Fix size calculation of parts in listIncompleteUploads (#31) 2017-03-15 19:17:48 +05:30
Krishnan Parthasarathi
843fd6123b Add copyObject example. (#30) 2017-03-15 15:26:48 +05:30
Krishnan Parthasarathi
9d5f6f326f Add missing API docs (#29) 2017-03-14 13:22:20 +05:30
Krishnan Parthasarathi
84c596f32c Parse S3 service errors and return ServiceErr values (#28) 2017-03-13 19:02:21 +05:30
Krishnan Parthasarathi
b333ed6345 Make MinioErr flatter and make examples work. (#25) 2017-03-09 16:51:56 +05:30
Krishnan Parthasarathi
9001f81813 Add port to host header for signing. (#24)
* Add port to host header for signing.

* Use endpoint corresponding to region for AWS S3
2017-03-03 21:16:47 +05:30
Aditya Manthramurthy
c30d4b2ce5 Use multipart copy in copyObject smaller files: (#23)
This change makes copyObject use multipart strategy when the object to
be created has a size larger than 64 MiB. Previously this strategy was
used when the object is larger than 5GiB only.
2017-03-03 16:50:59 +05:30
Krishnan Parthasarathi
de97837020 Add removeObject function (#22)
* Add an example
 * Fix minor issues in API.md
2017-03-02 16:49:27 +05:30
Krishnan Parthasarathi
7be42dd011 Add copyright header to all source files. (#20) 2017-03-02 16:01:59 +05:30
Aditya Manthramurthy
95815b3edd Clean up ConnectInfo smart constructors + doc sections: (#21)
* Introduce ConnectInfo and its smart constructors

* Introduce the Minio monad and provide a simple example
2017-03-02 15:45:15 +05:30
Aditya Manthramurthy
8044a02129 Rename example files (#19) 2017-03-02 12:17:39 +05:30
Krishnan Parthasarathi
8efd9f2329 Export getService S3API as listBuckets (#18)
... for parity with other SDKs.

- Also remove left-over reference of listIncompleteParts.
2017-03-02 12:11:34 +05:30
Krishnan Parthasarathi
e60f08fb0b Add FileUploader example to README (#6) 2017-03-02 11:48:04 +05:30
Krishnan Parthasarathi
4ec362918e listIncompleteUploads returns upload size like other SDKs (#15) 2017-03-01 17:01:52 +05:30
Aditya Manthramurthy
004a6ef79a Refactor tests to group into fewer parallel tests (#14) 2017-03-01 16:02:26 +05:30
Aditya Manthramurthy
566c5a6703 API.md (#11)
* Getting started

* More funcs added in docs + more stubs
2017-02-28 18:45:25 +05:30
Aditya Manthramurthy
99d9879cb5 Rename types (#12)
* Rename PartInfo -> PartTuple

* Rename ListPartInfo -> ObjectPartInfo
2017-02-28 18:14:16 +05:30
Krishnan Parthasarathi
abdc9fe320 Use bucket region cache to minimize getLocation requests (#3) 2017-02-25 16:42:23 +05:30
Aditya Manthramurthy
e4e2576c74 Add copyObject API: (#5)
* Performs server side copy of an object by creating a new object that
  is a copy of an existing object or part of an existing object.

* The user may specify an object on server of any size, and optionally
  specify a byte range to only copy a part of the object.

* Copy conditions are also supported.
2017-02-23 14:04:08 +05:30
Aditya Manthramurthy
d7b46aa115 Add support to run tests against a locally running minio server (#4) 2017-02-18 17:36:52 +05:30
Harshavardhana
fa527afa96 Rename putObjectFromSource as putObject
Also live server tests now use Minio Play server.
2017-02-18 16:40:30 +05:30
Aditya Manthramurthy
687176fe20 Add note - not production ready and set stability to experimental 2017-02-14 19:53:23 +05:30
Aditya Manthramurthy
064f0e73f9 Separate out tests into two suites:
- One suite runs tests not requiring a live server, and the other
  does.

- Adds a cabal flag to disable the live server tests.
2017-02-14 15:20:47 +05:30
Harshavardhana
4065902b0b Remove references to older reference. 2017-02-13 10:28:07 -08:00
Harshavardhana
05960f2701 Fix README.md wording and links. (#1) 2017-02-13 10:08:43 -08:00
Aditya Manthramurthy
b866c38814 Update new home of the library, and add hackage badge 2017-02-13 16:18:56 +05:30
Aditya Manthramurthy
30dbc0b64a Bump up version for release 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
f5bc5a0a45 Fix haddock links (Fixes #6) (#13) 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
ff355ef62c Add QuickCheck test for selectPartSizes (#12) 2017-02-13 16:06:01 +05:30
Krishnan Parthasarathi
00176ff976 Add statObject high-level API (#11) 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
153c5a67cd Add high-level makeBucket API (#2)
* Add high-level makeBucket API

* Add build badge

* Bring back live server tests.
2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
88a51486d5 Disabling live server unit tests temporarily (for travis) 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
2bf508c96d Fix tests 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
5d62839cfa cabal fixes + try travis script 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
d46f79c806 Set version for initial hackage release, fix authors and copyright 2017-02-13 16:06:01 +05:30
Krishnan Parthasarathi
fc3824e772 Add listObjects, listIncompleteUploads and listIncompleteParts examples 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
2bffed8833 Update Readme 2017-02-13 16:06:01 +05:30
Aditya Manthramurthy
3c92dc92c6 Improve some haddock; improve getObject interface. 2017-02-13 16:03:42 +05:30
Aditya Manthramurthy
75743ab946 PutObject fixes - does resource cleanup properly now. 2017-02-13 16:03:42 +05:30
Krishnan Parthasarathi
fd66d85167 Add getObject and putObject examples
- Use mkRandFile instead of depending on files on disk.
2017-02-13 16:03:42 +05:30
Aditya Manthramurthy
0509d90ef1 Multipart upload bug fixes and test fixes 2017-02-13 16:03:42 +05:30