| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Minio.AdminAPI
Contents
Synopsis
- data DriveInfo = DriveInfo {}
- data ErasureInfo = ErasureInfo {}
- data Backend
- data ConnStats = ConnStats {}
- data HttpStats = HttpStats {
- hsTotalHeads :: CountNAvgTime
- hsSuccessHeads :: CountNAvgTime
- hsTotalGets :: CountNAvgTime
- hsSuccessGets :: CountNAvgTime
- hsTotalPuts :: CountNAvgTime
- hsSuccessPuts :: CountNAvgTime
- hsTotalPosts :: CountNAvgTime
- hsSuccessPosts :: CountNAvgTime
- hsTotalDeletes :: CountNAvgTime
- hsSuccessDeletes :: CountNAvgTime
- data ServerProps = ServerProps {
- spUptime :: NominalDiffTime
- spVersion :: Text
- spCommitId :: Text
- spRegion :: Text
- spSqsArns :: [Text]
- data CountNAvgTime = CountNAvgTime {
- caCount :: Int64
- caAvgDuration :: Text
- data StorageClass = StorageClass {}
- data StorageInfo = StorageInfo {}
- data SIData = SIData {}
- data ServerInfo = ServerInfo {}
- getServerInfo :: Minio [ServerInfo]
- data HealOpts = HealOpts {
- hoRecursive :: Bool
- hoDryRun :: Bool
- data HealResultItem = HealResultItem {
- hriResultIdx :: Int
- hriType :: HealItemType
- hriBucket :: Bucket
- hriObject :: Object
- hriDetail :: Text
- hriParityBlocks :: Maybe Int
- hriDataBlocks :: Maybe Int
- hriDiskCount :: Int
- hriSetCount :: Int
- hriObjectSize :: Int
- hriBefore :: [DriveInfo]
- hriAfter :: [DriveInfo]
- data HealStatus = HealStatus {
- hsSummary :: Text
- hsStartTime :: UTCTime
- hsSettings :: HealOpts
- hsNumDisks :: Int
- hsFailureDetail :: Maybe Text
- hsItems :: Maybe [HealResultItem]
- data HealStartResp = HealStartResp {}
- startHeal :: Maybe Bucket -> Maybe Text -> HealOpts -> Minio HealStartResp
- forceStartHeal :: Maybe Bucket -> Maybe Text -> HealOpts -> Minio HealStartResp
- getHealStatus :: Maybe Bucket -> Maybe Text -> Text -> Minio HealStatus
- data SetConfigResult = SetConfigResult {
- scrStatus :: Bool
- scrNodeSummary :: [NodeSummary]
- data NodeSummary = NodeSummary {}
- setConfig :: ByteString -> Minio SetConfigResult
- getConfig :: Minio ByteString
- data ServerVersion = ServerVersion {
- svVersion :: Text
- svCommitId :: Text
- data ServiceStatus = ServiceStatus {}
- serviceStatus :: Minio ServiceStatus
- data ServiceAction
- serviceSendAction :: ServiceAction -> Minio ()
Minio Admin API
Provides Minio admin API and related types. It is in experimental state.
data ErasureInfo #
Constructors
| ErasureInfo | |
Fields
| |
Instances
| Eq ErasureInfo # | |
Defined in Network.Minio.AdminAPI | |
| Show ErasureInfo # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ErasureInfo -> ShowS # show :: ErasureInfo -> String # showList :: [ErasureInfo] -> ShowS # | |
| FromJSON ErasureInfo # | |
Defined in Network.Minio.AdminAPI | |
Constructors
| BackendFS | |
| BackendErasure ErasureInfo |
Constructors
| ConnStats | |
Fields
| |
Constructors
data ServerProps #
Constructors
| ServerProps | |
Fields
| |
Instances
| Eq ServerProps # | |
Defined in Network.Minio.AdminAPI | |
| Show ServerProps # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerProps -> ShowS # show :: ServerProps -> String # showList :: [ServerProps] -> ShowS # | |
| FromJSON ServerProps # | |
Defined in Network.Minio.AdminAPI | |
data CountNAvgTime #
Constructors
| CountNAvgTime | |
Fields
| |
Instances
| Eq CountNAvgTime # | |
Defined in Network.Minio.AdminAPI Methods (==) :: CountNAvgTime -> CountNAvgTime -> Bool # (/=) :: CountNAvgTime -> CountNAvgTime -> Bool # | |
| Show CountNAvgTime # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> CountNAvgTime -> ShowS # show :: CountNAvgTime -> String # showList :: [CountNAvgTime] -> ShowS # | |
| FromJSON CountNAvgTime # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser CountNAvgTime # parseJSONList :: Value -> Parser [CountNAvgTime] # | |
data StorageClass #
Constructors
| StorageClass | |
Instances
| Eq StorageClass # | |
Defined in Network.Minio.AdminAPI | |
| Show StorageClass # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> StorageClass -> ShowS # show :: StorageClass -> String # showList :: [StorageClass] -> ShowS # | |
data StorageInfo #
Constructors
| StorageInfo | |
Instances
| Eq StorageInfo # | |
Defined in Network.Minio.AdminAPI | |
| Show StorageInfo # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> StorageInfo -> ShowS # show :: StorageInfo -> String # showList :: [StorageInfo] -> ShowS # | |
| FromJSON StorageInfo # | |
Defined in Network.Minio.AdminAPI | |
data ServerInfo #
Instances
| Eq ServerInfo # | |
Defined in Network.Minio.AdminAPI | |
| Show ServerInfo # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerInfo -> ShowS # show :: ServerInfo -> String # showList :: [ServerInfo] -> ShowS # | |
| FromJSON ServerInfo # | |
Defined in Network.Minio.AdminAPI | |
getServerInfo :: Minio [ServerInfo] #
Fetches information for all cluster nodes, such as server properties, storage information, network statistics, etc.
Constructors
| HealOpts | |
Fields
| |
data HealResultItem #
Constructors
| HealResultItem | |
Fields
| |
Instances
| Eq HealResultItem # | |
Defined in Network.Minio.AdminAPI Methods (==) :: HealResultItem -> HealResultItem -> Bool # (/=) :: HealResultItem -> HealResultItem -> Bool # | |
| Show HealResultItem # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealResultItem -> ShowS # show :: HealResultItem -> String # showList :: [HealResultItem] -> ShowS # | |
| FromJSON HealResultItem # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser HealResultItem # parseJSONList :: Value -> Parser [HealResultItem] # | |
data HealStatus #
Constructors
| HealStatus | |
Fields
| |
Instances
| Eq HealStatus # | |
Defined in Network.Minio.AdminAPI | |
| Show HealStatus # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealStatus -> ShowS # show :: HealStatus -> String # showList :: [HealStatus] -> ShowS # | |
| FromJSON HealStatus # | |
Defined in Network.Minio.AdminAPI | |
data HealStartResp #
Constructors
| HealStartResp | |
Fields
| |
Instances
| Eq HealStartResp # | |
Defined in Network.Minio.AdminAPI Methods (==) :: HealStartResp -> HealStartResp -> Bool # (/=) :: HealStartResp -> HealStartResp -> Bool # | |
| Show HealStartResp # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealStartResp -> ShowS # show :: HealStartResp -> String # showList :: [HealStartResp] -> ShowS # | |
| FromJSON HealStartResp # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser HealStartResp # parseJSONList :: Value -> Parser [HealStartResp] # | |
startHeal :: Maybe Bucket -> Maybe Text -> HealOpts -> Minio HealStartResp #
Start a heal sequence that scans data under given (possible empty)
bucket and prefix. The recursive bool turns on recursive
traversal under the given path. dryRun does not mutate on-disk data,
but performs data validation. Two heal sequences on overlapping paths
may not be initiated. The progress of a heal should be followed using
the HealStatus API. The server accumulates results of the heal
traversal and waits for the client to receive and acknowledge
them using the status API
forceStartHeal :: Maybe Bucket -> Maybe Text -> HealOpts -> Minio HealStartResp #
Similar to start a heal sequence, but force start a new heal sequence even if an active heal is under progress.
getHealStatus :: Maybe Bucket -> Maybe Text -> Text -> Minio HealStatus #
data SetConfigResult #
Constructors
| SetConfigResult | |
Fields
| |
Instances
| Eq SetConfigResult # | |
Defined in Network.Minio.AdminAPI Methods (==) :: SetConfigResult -> SetConfigResult -> Bool # (/=) :: SetConfigResult -> SetConfigResult -> Bool # | |
| Show SetConfigResult # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> SetConfigResult -> ShowS # show :: SetConfigResult -> String # showList :: [SetConfigResult] -> ShowS # | |
| FromJSON SetConfigResult # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser SetConfigResult # parseJSONList :: Value -> Parser [SetConfigResult] # | |
data NodeSummary #
Constructors
| NodeSummary | |
Instances
| Eq NodeSummary # | |
Defined in Network.Minio.AdminAPI | |
| Show NodeSummary # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> NodeSummary -> ShowS # show :: NodeSummary -> String # showList :: [NodeSummary] -> ShowS # | |
| FromJSON NodeSummary # | |
Defined in Network.Minio.AdminAPI | |
setConfig :: ByteString -> Minio SetConfigResult #
Set a new config to the server.
getConfig :: Minio ByteString #
Get the current config file from server.
data ServerVersion #
Constructors
| ServerVersion | |
Fields
| |
Instances
| Eq ServerVersion # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServerVersion -> ServerVersion -> Bool # (/=) :: ServerVersion -> ServerVersion -> Bool # | |
| Show ServerVersion # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerVersion -> ShowS # show :: ServerVersion -> String # showList :: [ServerVersion] -> ShowS # | |
| FromJSON ServerVersion # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser ServerVersion # parseJSONList :: Value -> Parser [ServerVersion] # | |
data ServiceStatus #
Constructors
| ServiceStatus | |
Fields | |
Instances
| Eq ServiceStatus # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServiceStatus -> ServiceStatus -> Bool # (/=) :: ServiceStatus -> ServiceStatus -> Bool # | |
| Show ServiceStatus # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServiceStatus -> ShowS # show :: ServiceStatus -> String # showList :: [ServiceStatus] -> ShowS # | |
| FromJSON ServiceStatus # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser ServiceStatus # parseJSONList :: Value -> Parser [ServiceStatus] # | |
serviceStatus :: Minio ServiceStatus #
Get server version and uptime.
data ServiceAction #
Constructors
| ServiceActionRestart | |
| ServiceActionStop |
Instances
| Eq ServiceAction # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServiceAction -> ServiceAction -> Bool # (/=) :: ServiceAction -> ServiceAction -> Bool # | |
| Show ServiceAction # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServiceAction -> ShowS # show :: ServiceAction -> String # showList :: [ServiceAction] -> ShowS # | |
| ToJSON ServiceAction # | |
Defined in Network.Minio.AdminAPI Methods toJSON :: ServiceAction -> Value # toEncoding :: ServiceAction -> Encoding # toJSONList :: [ServiceAction] -> Value # toEncodingList :: [ServiceAction] -> Encoding # | |
serviceSendAction :: ServiceAction -> Minio () #
Send service restart or stop action to Minio server.