Comments (3)
Thanks for the report, we're considering how we can bring such functionality.
from minio-hs.
i simple scratch the api interface
let
dseSink = do
let
(ci', accessKey, secretKey, bucket, filepath)
= ( "http://10.132.37.200:9000"
, "XF90I4NV5E1ZC2ROPVVR"
, "6IxTLFeA2g+pPuXu2J8BMvEUgywN6kr5Uckdf1O4"
, "larluo"
, "postgresql.txt")
ci = ci' & M.setCreds (M.Credentials accessKey secretKey)
& M.setRegion "us-east-1"
Right uid <- lift . M.runMinioRes ci $ do
bExist <- M.bucketExists bucket
when (not bExist) $ void $ M.makeBucket bucket Nothing
let a = M.putObjectPart
M.newMultipartUpload bucket filepath []
C.chunksOfE (2000 * 1000)
.| mergeSource (C.yieldMany [1..])
.| C.mapM (\(pn, v) -> M.runMinioRes ci $ M.putObjectPart bucket filepath uid pn [] (M.PayloadBS v))
.| (C.sinkList >>= yield . fromRight' . sequence)
.| C.mapM (M.runMinioRes ci . M.completeMultipartUpload bucket filepath uid)
runConduitRes $ do
chan <- lift dsoChan
(sourceTBMChan chan)
.| C.concat
.| C.take 3
.| C.map ((<> "\n") .cs . J.encode)
.| dseSink
.| C.sinkList
putStrLn "finished"
from minio-hs.
i can run it successful on this way(ignore exception handle):
attach the complete code:
https://github.com/clojurians-org/haskell-example/blob/master/postgresql-to-minio/src/Main.hs
from minio-hs.
Related Issues (20)
- Replace Minio with MinIO and minio.io with min.io
- minio-hs-1.2.0 build error: No instance for (MonadThrow Minio) HOT 3
- listObjects lack retry mechanism HOT 9
- Minio constructor is hidden for runResourceT intergration. HOT 4
- minio putObject always fail! HOT 6
- bucket notify event support ? HOT 1
- Make MinioT monad transformer HOT 1
- Support for Yandex Object Storage
- presignedGetObjectUrl url is not accepted by S3 (permanentRedirect) HOT 6
- Tests start failing with unordered-containers 0.2.16
- Add support for STS credentials
- Add support for calling MinIO's STS APIs
- Add support for listing objects with versioning
- Add support for fetching and deleting specific versions of objects
- Add APIs to enable and suspend versioning on a bucket
- New release with GHC 9.8 support? HOT 1
- minio-hs-0.3.2 build fails with latest resourcet HOT 8
- poo* and goo* functions are lacking documentation on hackage HOT 2
- Implement setConfig/getConfig admin API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minio-hs.