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. |
||
|---|---|---|
| .. | ||
| AssumeRole.hs | ||
| BucketExists.hs | ||
| CopyObject.hs | ||
| FileUploader.hs | ||
| GetConfig.hs | ||
| GetObject.hs | ||
| HeadObject.hs | ||
| Heal.hs | ||
| ListBuckets.hs | ||
| ListIncompleteUploads.hs | ||
| ListObjects.hs | ||
| MakeBucket.hs | ||
| PresignedGetObject.hs | ||
| PresignedPostPolicy.hs | ||
| PresignedPutObject.hs | ||
| PutObject.hs | ||
| README.md | ||
| RemoveBucket.hs | ||
| RemoveIncompleteUpload.hs | ||
| RemoveObject.hs | ||
| SelectObject.hs | ||
| ServerInfo.hs | ||
| ServiceSendRestart.hs | ||
| ServiceSendStop.hs | ||
| ServiceStatus.hs | ||
| SetConfig.hs | ||
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.