Skip to content

Commit

Permalink
Add basic doc for AdminAPI module (minio#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
krisis authored and donatello committed Jun 4, 2018
1 parent 952c0b0 commit bf27848
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Network/Minio/AdminAPI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
--

module Network.Minio.AdminAPI
( ErasureSets(..)
( -- * Minio Admin API
--------------------
-- | Provides Minio admin API and related types. It is in
-- experimental state.
ErasureSets(..)
, ErasureInfo(..)
, Backend(..)
, ConnStats(..)
Expand Down Expand Up @@ -203,6 +207,9 @@ instance FromJSON ServerInfo where
adminPath :: ByteString
adminPath = "/minio/admin"

-- | Fetches information for all cluster nodes, such as server
-- properties, storage information, network statistics, etc.

getServerInfo :: Minio [ServerInfo]
getServerInfo = do
rsp <- executeAdminRequest AdminReqInfo { ariMethod = HT.methodGet
Expand Down

0 comments on commit bf27848

Please sign in to comment.