MinIO & min.io replaces Minio & minio.io respectively (#114)
This commit is contained in:
parent
82bb60153f
commit
af3b75e29e
@ -56,7 +56,7 @@ This release brings the following changes:
|
|||||||
This is a bug-fix release:
|
This is a bug-fix release:
|
||||||
|
|
||||||
* Fix concurrency bug in `limitedMapConcurrently` (#53)
|
* Fix concurrency bug in `limitedMapConcurrently` (#53)
|
||||||
* Fix tests related to listing incomplete uploads to accommodate Minio
|
* Fix tests related to listing incomplete uploads to accommodate MinIO
|
||||||
server's changed behaviour to not list incomplete uploads. Note that
|
server's changed behaviour to not list incomplete uploads. Note that
|
||||||
running these tests against AWS S3 are expected to fail. (#54)
|
running these tests against AWS S3 are expected to fail. (#54)
|
||||||
|
|
||||||
|
|||||||
16
README.md
16
README.md
@ -1,6 +1,6 @@
|
|||||||
# Minio Client SDK for Haskell [](https://travis-ci.org/minio/minio-hs)[](https://hackage.haskell.org/package/minio-hs)[](https://slack.minio.io)
|
# MinIO Client SDK for Haskell [](https://travis-ci.org/minio/minio-hs)[](https://hackage.haskell.org/package/minio-hs)[](https://slack.min.io)
|
||||||
|
|
||||||
The Minio Haskell Client SDK provides simple APIs to access [Minio](https://minio.io) and Amazon S3 compatible object storage server.
|
The MinIO Haskell Client SDK provides simple APIs to access [MinIO](https://min.io) and Amazon S3 compatible object storage server.
|
||||||
|
|
||||||
## Minimum Requirements
|
## Minimum Requirements
|
||||||
|
|
||||||
@ -24,10 +24,10 @@ stack test
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
A section of the tests use the remote Minio Play server at
|
A section of the tests use the remote MinIO Play server at
|
||||||
`https://play.minio.io:9000` by default. For library development,
|
`https://play.min.io:9000` by default. For library development,
|
||||||
using this remote server maybe slow. To run the tests against a
|
using this remote server maybe slow. To run the tests against a
|
||||||
locally running Minio live server at `http://localhost:9000`, just set
|
locally running MinIO live server at `http://localhost:9000`, just set
|
||||||
the environment `MINIO_LOCAL` to any value (and unset it to switch
|
the environment `MINIO_LOCAL` to any value (and unset it to switch
|
||||||
back to Play).
|
back to Play).
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ stack haddock
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs --package optparse-applicative --package filepath
|
-- stack --resolver lts-11.1 runghc --package minio-hs --package optparse-applicative --package filepath
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -76,7 +76,7 @@ import UnliftIO (throwIO, try)
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -86,7 +86,7 @@ import Prelude
|
|||||||
fileNameArgs :: Parser FilePath
|
fileNameArgs :: Parser FilePath
|
||||||
fileNameArgs = strArgument
|
fileNameArgs = strArgument
|
||||||
(metavar "FILENAME"
|
(metavar "FILENAME"
|
||||||
<> help "Name of file to upload to AWS S3 or a Minio server")
|
<> help "Name of file to upload to AWS S3 or a MinIO server")
|
||||||
|
|
||||||
cmdParser = info
|
cmdParser = info
|
||||||
(helper <*> fileNameArgs)
|
(helper <*> fileNameArgs)
|
||||||
|
|||||||
2
Setup.hs
2
Setup.hs
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
50
docs/API.md
50
docs/API.md
@ -1,8 +1,8 @@
|
|||||||
# Minio Haskell SDK API Reference
|
# MinIO Haskell SDK API Reference
|
||||||
|
|
||||||
## Initialize Minio Client object.
|
## Initialize MinIO Client object.
|
||||||
|
|
||||||
### Minio - for public Play server
|
### MinIO - for public Play server
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
minioPlayCI :: ConnectInfo
|
minioPlayCI :: ConnectInfo
|
||||||
@ -32,8 +32,8 @@ awsCI { connectAccesskey = "your-access-key"
|
|||||||
|
|
||||||
## 1. Connecting and running operations on the storage service
|
## 1. Connecting and running operations on the storage service
|
||||||
|
|
||||||
The Haskell Minio SDK provides high-level functionality to perform
|
The Haskell MinIO SDK provides high-level functionality to perform
|
||||||
operations on a Minio server or any AWS S3-like API compatible storage
|
operations on a MinIO server or any AWS S3-like API compatible storage
|
||||||
service.
|
service.
|
||||||
|
|
||||||
### The `ConnectInfo` type
|
### The `ConnectInfo` type
|
||||||
@ -77,18 +77,18 @@ The parameters in the expression `awsWithRegion region autoDiscover` are:
|
|||||||
#### minioPlayCI :: ConnectInfo
|
#### minioPlayCI :: ConnectInfo
|
||||||
|
|
||||||
This constructor provides connection and authentication information to
|
This constructor provides connection and authentication information to
|
||||||
connect to the public Minio Play server at
|
connect to the public MinIO Play server at
|
||||||
`https://play.minio.io:9000/`.
|
`https://play.min.io:9000/`.
|
||||||
|
|
||||||
#### minioCI :: Text -> Int -> Bool -> ConnectInfo
|
#### minioCI :: Text -> Int -> Bool -> ConnectInfo
|
||||||
|
|
||||||
Use to connect to a Minio server.
|
Use to connect to a MinIO server.
|
||||||
|
|
||||||
The parameters in the expression `minioCI host port isSecure` are:
|
The parameters in the expression `minioCI host port isSecure` are:
|
||||||
|
|
||||||
|Parameter|Type|Description|
|
|Parameter|Type|Description|
|
||||||
|:---|:---|:---|
|
|:---|:---|:---|
|
||||||
| `host` | _Text_ | Hostname of the Minio or other S3-API compatible server |
|
| `host` | _Text_ | Hostname of the MinIO or other S3-API compatible server |
|
||||||
| `port` | _Int_ | Port number to connect to|
|
| `port` | _Int_ | Port number to connect to|
|
||||||
| `isSecure` | _Bool_ | Does the server use HTTPS? |
|
| `isSecure` | _Bool_ | Does the server use HTTPS? |
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ values.
|
|||||||
### The Minio Monad
|
### The Minio Monad
|
||||||
|
|
||||||
This monad provides the required environment to perform requests
|
This monad provides the required environment to perform requests
|
||||||
against a Minio or other S3 API compatible server. It uses the
|
against a MinIO or other S3 API compatible server. It uses the
|
||||||
connection information from the `ConnectInfo` value provided to it. It
|
connection information from the `ConnectInfo` value provided to it. It
|
||||||
performs connection pooling, bucket location caching, error handling
|
performs connection pooling, bucket location caching, error handling
|
||||||
and resource clean-up actions.
|
and resource clean-up actions.
|
||||||
@ -264,8 +264,8 @@ import Conduit
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -277,7 +277,7 @@ main = do
|
|||||||
bucket = "test"
|
bucket = "test"
|
||||||
|
|
||||||
-- Performs a recursive listing of all objects under bucket "test"
|
-- Performs a recursive listing of all objects under bucket "test"
|
||||||
-- on play.minio.io.
|
-- on play.min.io.
|
||||||
res <- runMinio minioPlayCI $
|
res <- runMinio minioPlayCI $
|
||||||
runConduit $ listObjects bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
runConduit $ listObjects bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
||||||
print res
|
print res
|
||||||
@ -325,8 +325,8 @@ import Conduit
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -338,7 +338,7 @@ main = do
|
|||||||
bucket = "test"
|
bucket = "test"
|
||||||
|
|
||||||
-- Performs a recursive listing of all objects under bucket "test"
|
-- Performs a recursive listing of all objects under bucket "test"
|
||||||
-- on play.minio.io.
|
-- on play.min.io.
|
||||||
res <- runMinio minioPlayCI $
|
res <- runMinio minioPlayCI $
|
||||||
runConduit $ listObjectsV1 bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
runConduit $ listObjectsV1 bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
||||||
print res
|
print res
|
||||||
@ -383,8 +383,8 @@ import Network.Minio
|
|||||||
import Conduit
|
import Conduit
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -396,7 +396,7 @@ main = do
|
|||||||
bucket = "test"
|
bucket = "test"
|
||||||
|
|
||||||
-- Performs a recursive listing of incomplete uploads under bucket "test"
|
-- Performs a recursive listing of incomplete uploads under bucket "test"
|
||||||
-- on a local minio server.
|
-- on a local MinIO server.
|
||||||
res <- runMinio minioPlayCI $
|
res <- runMinio minioPlayCI $
|
||||||
runConduit $ listIncompleteUploads bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
runConduit $ listIncompleteUploads bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
||||||
print res
|
print res
|
||||||
@ -450,8 +450,8 @@ import qualified Data.Conduit.Binary as CB
|
|||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -500,8 +500,8 @@ import qualified Data.Conduit.Combinators as CC
|
|||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -560,8 +560,8 @@ import Data.Conduit (($$+-))
|
|||||||
import Data.Conduit.Binary (sinkLbs)
|
import Data.Conduit.Binary (sinkLbs)
|
||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses MinIO play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Control.Monad.IO.Class (liftIO)
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Control.Monad.Catch (catchIf)
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs --package optparse-applicative --package filepath
|
-- stack --resolver lts-11.1 runghc --package minio-hs --package optparse-applicative --package filepath
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -31,7 +31,7 @@ import UnliftIO (throwIO, try)
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -41,7 +41,7 @@ import Prelude
|
|||||||
fileNameArgs :: Parser FilePath
|
fileNameArgs :: Parser FilePath
|
||||||
fileNameArgs = strArgument
|
fileNameArgs = strArgument
|
||||||
(metavar "FILENAME"
|
(metavar "FILENAME"
|
||||||
<> help "Name of file to upload to AWS S3 or a Minio server")
|
<> help "Name of file to upload to AWS S3 or a MinIO server")
|
||||||
|
|
||||||
cmdParser = info
|
cmdParser = info
|
||||||
(helper <*> fileNameArgs)
|
(helper <*> fileNameArgs)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -26,7 +26,7 @@ import qualified Data.Conduit.Binary as CB
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Network.Minio.S3API
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Control.Monad.IO.Class (liftIO)
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Conduit
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -42,7 +42,7 @@ main = do
|
|||||||
print res
|
print res
|
||||||
|
|
||||||
{-
|
{-
|
||||||
Following is the output of the above program on a local Minio server.
|
Following is the output of the above program on a local MinIO server.
|
||||||
|
|
||||||
Right [UploadInfo { uiKey = "go1.6.2.linux-amd64.tar.gz"
|
Right [UploadInfo { uiKey = "go1.6.2.linux-amd64.tar.gz"
|
||||||
, uiUploadId = "063eb592-bdd7-4a0c-be48-34fb3ceb63e2"
|
, uiUploadId = "063eb592-bdd7-4a0c-be48-34fb3ceb63e2"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -25,7 +25,7 @@ import Prelude
|
|||||||
|
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
@ -37,12 +37,12 @@ main = do
|
|||||||
bucket = "test"
|
bucket = "test"
|
||||||
|
|
||||||
-- Performs a recursive listing of all objects under bucket "test"
|
-- Performs a recursive listing of all objects under bucket "test"
|
||||||
-- on play.minio.io.
|
-- on play.min.io.
|
||||||
res <- runMinio minioPlayCI $
|
res <- runMinio minioPlayCI $
|
||||||
runConduit $ listObjects bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
runConduit $ listObjects bucket Nothing True .| mapM_C (\v -> (liftIO $ print v))
|
||||||
print res
|
print res
|
||||||
{-
|
{-
|
||||||
Following is the output of the above program on a local Minio server.
|
Following is the output of the above program on a local MinIO server.
|
||||||
|
|
||||||
Right [ObjectInfo {oiObject = "ADVANCED.png", oiModTime = 2017-02-10 05:33:24.816 UTC, oiETag = "\"a69f3af6bbb06fe1d42ac910ec30482f\"", oiSize = 94026},ObjectInfo {oiObject = "obj", oiModTime = 2017-02-10 08:49:26.777 UTC, oiETag = "\"715a872a253a3596652c1490081b4b6a-1\"", oiSize = 15728640}]
|
Right [ObjectInfo {oiObject = "ADVANCED.png", oiModTime = 2017-02-10 05:33:24.816 UTC, oiETag = "\"a69f3af6bbb06fe1d42ac910ec30482f\"", oiSize = 94026},ObjectInfo {oiObject = "obj", oiModTime = 2017-02-10 08:49:26.777 UTC, oiETag = "\"715a872a253a3596652c1490081b4b6a-1\"", oiSize = 15728640}]
|
||||||
-}
|
-}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Network.Minio
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -27,7 +27,7 @@ import qualified Data.Conduit.Combinators as CC
|
|||||||
import qualified Data.Text.Encoding as E
|
import qualified Data.Text.Encoding as E
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -27,7 +27,7 @@ import qualified Data.Text.Encoding as Enc
|
|||||||
import qualified Data.Time as Time
|
import qualified Data.Time as Time
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import qualified Data.ByteString.Char8 as B
|
|||||||
import Data.CaseInsensitive (original)
|
import Data.CaseInsensitive (original)
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -25,7 +25,7 @@ import qualified Data.Conduit.Combinators as CC
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -24,7 +24,7 @@ import Network.Minio
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -23,7 +23,7 @@ import Network.Minio
|
|||||||
import Prelude
|
import Prelude
|
||||||
|
|
||||||
-- | The following example uses minio's play server at
|
-- | The following example uses minio's play server at
|
||||||
-- https://play.minio.io:9000. The endpoint and associated
|
-- https://play.min.io:9000. The endpoint and associated
|
||||||
-- credentials are provided via the libary constant,
|
-- credentials are provided via the libary constant,
|
||||||
--
|
--
|
||||||
-- > minioPlayCI :: ConnectInfo
|
-- > minioPlayCI :: ConnectInfo
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-13.1 runghc --package minio-hs
|
-- stack --resolver lts-13.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2019 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2019 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
-- stack --resolver lts-11.1 runghc --package minio-hs
|
-- stack --resolver lts-11.1 runghc --package minio-hs
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
name: minio-hs
|
name: minio-hs
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
synopsis: A Minio Haskell Library for Amazon S3 compatible cloud
|
synopsis: A MinIO Haskell Library for Amazon S3 compatible cloud
|
||||||
storage.
|
storage.
|
||||||
description: The Minio Haskell client library provides simple APIs to
|
description: The MinIO Haskell client library provides simple APIs to
|
||||||
access Minio, Amazon S3 and other API compatible cloud
|
access MinIO, Amazon S3 and other API compatible cloud
|
||||||
storage servers.
|
storage servers.
|
||||||
homepage: https://github.com/minio/minio-hs#readme
|
homepage: https://github.com/minio/minio-hs#readme
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Minio Dev Team
|
author: MinIO Dev Team
|
||||||
maintainer: dev@minio.io
|
maintainer: dev@min.io
|
||||||
category: Network, AWS, Object Storage
|
category: Network, AWS, Object Storage
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
stability: Experimental
|
stability: Experimental
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
-- |
|
-- |
|
||||||
-- Module: Network.Minio
|
-- Module: Network.Minio
|
||||||
-- Copyright: (c) 2017-2019 Minio Dev Team
|
-- Copyright: (c) 2017-2019 MinIO Dev Team
|
||||||
-- License: Apache 2.0
|
-- License: Apache 2.0
|
||||||
-- Maintainer: Minio Dev Team <dev@minio.io>
|
-- Maintainer: MinIO Dev Team <dev@min.io>
|
||||||
--
|
--
|
||||||
-- Types and functions to access S3 compatible object storage servers
|
-- Types and functions to access S3 compatible object storage servers
|
||||||
-- like Minio.
|
-- like MinIO.
|
||||||
|
|
||||||
module Network.Minio
|
module Network.Minio
|
||||||
(
|
(
|
||||||
@ -51,7 +51,7 @@ module Network.Minio
|
|||||||
|
|
||||||
-- * Minio Monad
|
-- * Minio Monad
|
||||||
----------------
|
----------------
|
||||||
-- | The Minio monad provides connection-reuse, bucket-location
|
-- | The Minio Monad provides connection-reuse, bucket-location
|
||||||
-- caching, resource management and simpler error handling
|
-- caching, resource management and simpler error handling
|
||||||
-- functionality. All actions on object storage are performed within
|
-- functionality. All actions on object storage are performed within
|
||||||
-- this Monad.
|
-- this Monad.
|
||||||
@ -209,7 +209,7 @@ module Network.Minio
|
|||||||
) where
|
) where
|
||||||
|
|
||||||
{-
|
{-
|
||||||
This module exports the high-level Minio API for object storage.
|
This module exports the high-level MinIO API for object storage.
|
||||||
-}
|
-}
|
||||||
|
|
||||||
import qualified Data.Conduit as C
|
import qualified Data.Conduit as C
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -15,9 +15,9 @@
|
|||||||
--
|
--
|
||||||
|
|
||||||
module Network.Minio.AdminAPI
|
module Network.Minio.AdminAPI
|
||||||
( -- * Minio Admin API
|
( -- * MinIO Admin API
|
||||||
--------------------
|
--------------------
|
||||||
-- | Provides Minio admin API and related types. It is in
|
-- | Provides MinIO admin API and related types. It is in
|
||||||
-- experimental state.
|
-- experimental state.
|
||||||
DriveInfo(..)
|
DriveInfo(..)
|
||||||
, ErasureInfo(..)
|
, ErasureInfo(..)
|
||||||
@ -401,7 +401,7 @@ serviceStatus = do
|
|||||||
Right ss -> return ss
|
Right ss -> return ss
|
||||||
Left err -> throwIO $ MErrVJsonParse $ T.pack err
|
Left err -> throwIO $ MErrVJsonParse $ T.pack err
|
||||||
|
|
||||||
-- | Send service restart or stop action to Minio server.
|
-- | Send service restart or stop action to MinIO server.
|
||||||
serviceSendAction :: ServiceAction -> Minio ()
|
serviceSendAction :: ServiceAction -> Minio ()
|
||||||
serviceSendAction action = do
|
serviceSendAction action = do
|
||||||
let payload = PayloadBS $ LBS.toStrict $ A.encode action
|
let payload = PayloadBS $ LBS.toStrict $ A.encode action
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -93,7 +93,7 @@ awsRegionMap = Map.fromList [
|
|||||||
-- enable the @OverloadedStrings@ language extension and use the
|
-- enable the @OverloadedStrings@ language extension and use the
|
||||||
-- `IsString` instance to provide a URL, for example:
|
-- `IsString` instance to provide a URL, for example:
|
||||||
--
|
--
|
||||||
-- > let c :: ConnectInfo = "https://play.minio.io:9000"
|
-- > let c :: ConnectInfo = "https://play.min.io:9000"
|
||||||
data ConnectInfo = ConnectInfo {
|
data ConnectInfo = ConnectInfo {
|
||||||
connectHost :: Text
|
connectHost :: Text
|
||||||
, connectPort :: Int
|
, connectPort :: Int
|
||||||
@ -211,13 +211,13 @@ awsCI :: ConnectInfo
|
|||||||
awsCI = "https://s3.amazonaws.com"
|
awsCI = "https://s3.amazonaws.com"
|
||||||
|
|
||||||
|
|
||||||
-- | <https://play.minio.io:9000 Minio Play Server>
|
-- | <https://play.min.io:9000 MinIO Play Server>
|
||||||
-- ConnectInfo. Credentials are already filled in.
|
-- ConnectInfo. Credentials are already filled in.
|
||||||
minioPlayCI :: ConnectInfo
|
minioPlayCI :: ConnectInfo
|
||||||
minioPlayCI = let playCreds = Credentials "Q3AM3UQ867SPQQA43P2F" "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
|
minioPlayCI = let playCreds = Credentials "Q3AM3UQ867SPQQA43P2F" "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
|
||||||
in setCreds playCreds
|
in setCreds playCreds
|
||||||
$ setRegion "us-east-1"
|
$ setRegion "us-east-1"
|
||||||
"https://play.minio.io:9000"
|
"https://play.min.io:9000"
|
||||||
|
|
||||||
-- |
|
-- |
|
||||||
-- Represents a bucket in the object store
|
-- Represents a bucket in the object store
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017-2019 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017-2019 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -18,7 +18,7 @@ module Network.Minio.SelectAPI
|
|||||||
(
|
(
|
||||||
|
|
||||||
-- | The `selectObjectContent` allows querying CSV, JSON or Parquet
|
-- | The `selectObjectContent` allows querying CSV, JSON or Parquet
|
||||||
-- format objects in AWS S3 and in Minio using SQL Select
|
-- format objects in AWS S3 and in MinIO using SQL Select
|
||||||
-- statements. This allows significant reduction of data transfer
|
-- statements. This allows significant reduction of data transfer
|
||||||
-- from object storage for computation-intensive tasks, as relevant
|
-- from object storage for computation-intensive tasks, as relevant
|
||||||
-- data is filtered close to the storage.
|
-- data is filtered close to the storage.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
@ -56,7 +56,7 @@ objectNameValidityTests = testGroup "Object Name Validity Tests"
|
|||||||
]
|
]
|
||||||
|
|
||||||
parseServerInfoJSONTest :: TestTree
|
parseServerInfoJSONTest :: TestTree
|
||||||
parseServerInfoJSONTest = testGroup "Parse Minio Admin API ServerInfo JSON test" $
|
parseServerInfoJSONTest = testGroup "Parse MinIO Admin API ServerInfo JSON test" $
|
||||||
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
||||||
tfn (eitherDecode tVal :: Either [Char] [ServerInfo])) testCases
|
tfn (eitherDecode tVal :: Either [Char] [ServerInfo])) testCases
|
||||||
where
|
where
|
||||||
@ -71,7 +71,7 @@ parseServerInfoJSONTest = testGroup "Parse Minio Admin API ServerInfo JSON test"
|
|||||||
invalidJSON = "[{\"error\":\"\",\"addr\":\"192.168.1.218:9000\",\"data\":{\"storage\":{\"Used\":83084,\"Backend\":{\"Type\":42,\"OnlineDisks\":4,\"OfflineDisks\":0,\"StandardSCData\":2,\"StandardSCParity\":2,\"RRSCData\":2,\"RRSCParity\":2,\"Sets\":[[{\"uuid\":\"16ec6f2c-9197-4787-904a-36bb2c2683f8\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"4052e086-ef99-4aa5-ae2b-8e27559432f6\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"d0639950-ddd3-45b0-93ca-fd86f5d79f72\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"30ec68c0-37e1-4592-82c1-26b143c0ac10\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]]}},\"network\":{\"transferred\":404,\"received\":0},\"http\":{\"totalHEADs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successHEADs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalGETs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successGETs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalPUTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successPUTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalPOSTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successPOSTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalDELETEs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successDELETEs\":{\"count\":0,\"avgDuration\":\"0s\"}},\"server\":{\"uptime\":2738903073,\"version\":\"DEVELOPMENT.GOGET\",\"commitID\":\"DEVELOPMENT.GOGET\",\"region\":\"\",\"sqsARN\":[]}}}]"
|
invalidJSON = "[{\"error\":\"\",\"addr\":\"192.168.1.218:9000\",\"data\":{\"storage\":{\"Used\":83084,\"Backend\":{\"Type\":42,\"OnlineDisks\":4,\"OfflineDisks\":0,\"StandardSCData\":2,\"StandardSCParity\":2,\"RRSCData\":2,\"RRSCParity\":2,\"Sets\":[[{\"uuid\":\"16ec6f2c-9197-4787-904a-36bb2c2683f8\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"4052e086-ef99-4aa5-ae2b-8e27559432f6\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"d0639950-ddd3-45b0-93ca-fd86f5d79f72\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"30ec68c0-37e1-4592-82c1-26b143c0ac10\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]]}},\"network\":{\"transferred\":404,\"received\":0},\"http\":{\"totalHEADs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successHEADs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalGETs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successGETs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalPUTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successPUTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalPOSTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successPOSTs\":{\"count\":0,\"avgDuration\":\"0s\"},\"totalDELETEs\":{\"count\":0,\"avgDuration\":\"0s\"},\"successDELETEs\":{\"count\":0,\"avgDuration\":\"0s\"}},\"server\":{\"uptime\":2738903073,\"version\":\"DEVELOPMENT.GOGET\",\"commitID\":\"DEVELOPMENT.GOGET\",\"region\":\"\",\"sqsARN\":[]}}}]"
|
||||||
|
|
||||||
parseHealStatusTest :: TestTree
|
parseHealStatusTest :: TestTree
|
||||||
parseHealStatusTest = testGroup "Parse Minio Admin API HealStatus JSON test" $
|
parseHealStatusTest = testGroup "Parse MinIO Admin API HealStatus JSON test" $
|
||||||
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
||||||
tfn (eitherDecode tVal :: Either [Char] HealStatus)) testCases
|
tfn (eitherDecode tVal :: Either [Char] HealStatus)) testCases
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ parseHealStatusTest = testGroup "Parse Minio Admin API HealStatus JSON test" $
|
|||||||
invalidItemType = "{\"Summary\":\"finished\",\"StartTime\":\"2018-06-05T08:09:47.644465513Z\",\"NumDisks\":4,\"Settings\":{\"recursive\":false,\"dryRun\":false},\"Items\":[{\"resultId\":1,\"type\":\"hello\",\"bucket\":\"\",\"object\":\"\",\"detail\":\"disk-format\",\"diskCount\":4,\"setCount\":1,\"before\":{\"drives\":[{\"uuid\":\"c3487166-b8a4-481a-b1e7-fb9b249e2500\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"55a6e787-184f-4e4c-bf09-03dcada658a9\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"f035d8c3-fca1-4407-b89c-38c2bcf4a641\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"4f8b79d3-db90-4c1d-87c2-35a28b0d9a13\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]},\"after\":{\"drives\":[{\"uuid\":\"c3487166-b8a4-481a-b1e7-fb9b249e2500\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"55a6e787-184f-4e4c-bf09-03dcada658a9\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"f035d8c3-fca1-4407-b89c-38c2bcf4a641\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"4f8b79d3-db90-4c1d-87c2-35a28b0d9a13\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]},\"objectSize\":0}]}"
|
invalidItemType = "{\"Summary\":\"finished\",\"StartTime\":\"2018-06-05T08:09:47.644465513Z\",\"NumDisks\":4,\"Settings\":{\"recursive\":false,\"dryRun\":false},\"Items\":[{\"resultId\":1,\"type\":\"hello\",\"bucket\":\"\",\"object\":\"\",\"detail\":\"disk-format\",\"diskCount\":4,\"setCount\":1,\"before\":{\"drives\":[{\"uuid\":\"c3487166-b8a4-481a-b1e7-fb9b249e2500\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"55a6e787-184f-4e4c-bf09-03dcada658a9\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"f035d8c3-fca1-4407-b89c-38c2bcf4a641\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"4f8b79d3-db90-4c1d-87c2-35a28b0d9a13\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]},\"after\":{\"drives\":[{\"uuid\":\"c3487166-b8a4-481a-b1e7-fb9b249e2500\",\"endpoint\":\"/tmp/1\",\"state\":\"ok\"},{\"uuid\":\"55a6e787-184f-4e4c-bf09-03dcada658a9\",\"endpoint\":\"/tmp/2\",\"state\":\"ok\"},{\"uuid\":\"f035d8c3-fca1-4407-b89c-38c2bcf4a641\",\"endpoint\":\"/tmp/3\",\"state\":\"ok\"},{\"uuid\":\"4f8b79d3-db90-4c1d-87c2-35a28b0d9a13\",\"endpoint\":\"/tmp/4\",\"state\":\"ok\"}]},\"objectSize\":0}]}"
|
||||||
|
|
||||||
parseHealStartRespTest :: TestTree
|
parseHealStartRespTest :: TestTree
|
||||||
parseHealStartRespTest = testGroup "Parse Minio Admin API HealStartResp JSON test" $
|
parseHealStartRespTest = testGroup "Parse MinIO Admin API HealStartResp JSON test" $
|
||||||
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
map (\(tName, tDesc, tfn, tVal) -> testCase tName $ assertBool tDesc $
|
||||||
tfn (eitherDecode tVal :: Either [Char] HealStartResp)) testCases
|
tfn (eitherDecode tVal :: Either [Char] HealStartResp)) testCases
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Minio Haskell SDK, (C) 2017, 2018 Minio, Inc.
|
-- MinIO Haskell SDK, (C) 2017, 2018 MinIO, Inc.
|
||||||
--
|
--
|
||||||
-- Licensed under the Apache License, Version 2.0 (the "License");
|
-- Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
-- you may not use this file except in compliance with the License.
|
-- you may not use this file except in compliance with the License.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user