minio-hs/examples
Aditya Manthramurthy fa62ed599a
Add support for AssumeRole STS API (#188)
This change adds support for requesting temporary object storage
credentials using the STS API. Some breaking changes are introduced to
enable this support:

- `Credentials` type has been removed. Use the `CredentialValue` type
instead. Corresponding to this the type signature for `setCreds` has
changed, though the functionality is the same.
- The type alias `Provider` has been renamed to `CredentialLoader` to
avoid naming confusion.
2023-05-03 17:52:46 -07:00
..
AssumeRole.hs Add support for AssumeRole STS API (#188) 2023-05-03 17:52:46 -07:00
BucketExists.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
CopyObject.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
FileUploader.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
GetConfig.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
GetObject.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
HeadObject.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
Heal.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ListBuckets.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
ListIncompleteUploads.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ListObjects.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
MakeBucket.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
PresignedGetObject.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
PresignedPostPolicy.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
PresignedPutObject.hs Update with changes for ormolu 0.5.0.0 (#171) 2022-05-27 12:07:28 -07:00
PutObject.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
README.md New release (#140) 2020-01-02 11:23:03 -08:00
RemoveBucket.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
RemoveIncompleteUpload.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
RemoveObject.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00
SelectObject.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ServerInfo.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ServiceSendRestart.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ServiceSendStop.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
ServiceStatus.hs Hlint fixes (#173) 2022-05-27 14:33:05 -07:00
SetConfig.hs Update code formatting and update dependencies (unliftio, protolude) (#152) 2020-06-14 10:06:41 -07:00

Examples

The examples in this directory illustrate usage of various APIs provided by this library. Each file is self-contained and can be run like a script directly.

To build the examples, the build flag examples needs to be turned on:

stack build --flag minio-hs:examples

Now to run and example script BucketExists.hs:

stack exec BucketExists

The CI system is configured to build these examples with every change, so they should be current.