Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 Source #
ErasureInfo | |
|
Instances
Eq ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI (==) :: ErasureInfo -> ErasureInfo -> Bool # (/=) :: ErasureInfo -> ErasureInfo -> Bool # | |
Show ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ErasureInfo -> ShowS # show :: ErasureInfo -> String # showList :: [ErasureInfo] -> ShowS # | |
FromJSON ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser ErasureInfo # parseJSONList :: Value -> Parser [ErasureInfo] # |
data ServerProps Source #
ServerProps | |
|
Instances
Eq ServerProps Source # | |
Defined in Network.Minio.AdminAPI (==) :: ServerProps -> ServerProps -> Bool # (/=) :: ServerProps -> ServerProps -> Bool # | |
Show ServerProps Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ServerProps -> ShowS # show :: ServerProps -> String # showList :: [ServerProps] -> ShowS # | |
FromJSON ServerProps Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser ServerProps # parseJSONList :: Value -> Parser [ServerProps] # |
data CountNAvgTime Source #
Instances
Eq CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI (==) :: CountNAvgTime -> CountNAvgTime -> Bool # (/=) :: CountNAvgTime -> CountNAvgTime -> Bool # | |
Show CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> CountNAvgTime -> ShowS # show :: CountNAvgTime -> String # showList :: [CountNAvgTime] -> ShowS # | |
FromJSON CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser CountNAvgTime # parseJSONList :: Value -> Parser [CountNAvgTime] # |
data StorageClass Source #
Instances
Eq StorageClass Source # | |
Defined in Network.Minio.AdminAPI (==) :: StorageClass -> StorageClass -> Bool # (/=) :: StorageClass -> StorageClass -> Bool # | |
Show StorageClass Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> StorageClass -> ShowS # show :: StorageClass -> String # showList :: [StorageClass] -> ShowS # |
data StorageInfo Source #
Instances
Eq StorageInfo Source # | |
Defined in Network.Minio.AdminAPI (==) :: StorageInfo -> StorageInfo -> Bool # (/=) :: StorageInfo -> StorageInfo -> Bool # | |
Show StorageInfo Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> StorageInfo -> ShowS # show :: StorageInfo -> String # showList :: [StorageInfo] -> ShowS # | |
FromJSON StorageInfo Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser StorageInfo # parseJSONList :: Value -> Parser [StorageInfo] # |
data ServerInfo Source #
Instances
Eq ServerInfo Source # | |
Defined in Network.Minio.AdminAPI (==) :: ServerInfo -> ServerInfo -> Bool # (/=) :: ServerInfo -> ServerInfo -> Bool # | |
Show ServerInfo Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ServerInfo -> ShowS # show :: ServerInfo -> String # showList :: [ServerInfo] -> ShowS # | |
FromJSON ServerInfo Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser ServerInfo # parseJSONList :: Value -> Parser [ServerInfo] # |
getServerInfo :: Minio [ServerInfo] Source #
Fetches information for all cluster nodes, such as server properties, storage information, network statistics, etc.
HealOpts | |
|
data HealResultItem Source #
HealResultItem | |
|
Instances
Eq HealResultItem Source # | |
Defined in Network.Minio.AdminAPI (==) :: HealResultItem -> HealResultItem -> Bool # (/=) :: HealResultItem -> HealResultItem -> Bool # | |
Show HealResultItem Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> HealResultItem -> ShowS # show :: HealResultItem -> String # showList :: [HealResultItem] -> ShowS # | |
FromJSON HealResultItem Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser HealResultItem # parseJSONList :: Value -> Parser [HealResultItem] # |
data HealStatus Source #
HealStatus | |
|
Instances
Eq HealStatus Source # | |
Defined in Network.Minio.AdminAPI (==) :: HealStatus -> HealStatus -> Bool # (/=) :: HealStatus -> HealStatus -> Bool # | |
Show HealStatus Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> HealStatus -> ShowS # show :: HealStatus -> String # showList :: [HealStatus] -> ShowS # | |
FromJSON HealStatus Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser HealStatus # parseJSONList :: Value -> Parser [HealStatus] # |
data HealStartResp Source #
Instances
Eq HealStartResp Source # | |
Defined in Network.Minio.AdminAPI (==) :: HealStartResp -> HealStartResp -> Bool # (/=) :: HealStartResp -> HealStartResp -> Bool # | |
Show HealStartResp Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> HealStartResp -> ShowS # show :: HealStartResp -> String # showList :: [HealStartResp] -> ShowS # | |
FromJSON HealStartResp Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser HealStartResp # parseJSONList :: Value -> Parser [HealStartResp] # |
startHeal :: Maybe Bucket -> Maybe Text -> HealOpts -> Minio HealStartResp Source #
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 Source #
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 Source #
data SetConfigResult Source #
Instances
Eq SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI (==) :: SetConfigResult -> SetConfigResult -> Bool # (/=) :: SetConfigResult -> SetConfigResult -> Bool # | |
Show SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> SetConfigResult -> ShowS # show :: SetConfigResult -> String # showList :: [SetConfigResult] -> ShowS # | |
FromJSON SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser SetConfigResult # parseJSONList :: Value -> Parser [SetConfigResult] # |
data NodeSummary Source #
Instances
Eq NodeSummary Source # | |
Defined in Network.Minio.AdminAPI (==) :: NodeSummary -> NodeSummary -> Bool # (/=) :: NodeSummary -> NodeSummary -> Bool # | |
Show NodeSummary Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> NodeSummary -> ShowS # show :: NodeSummary -> String # showList :: [NodeSummary] -> ShowS # | |
FromJSON NodeSummary Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser NodeSummary # parseJSONList :: Value -> Parser [NodeSummary] # |
setConfig :: ByteString -> Minio SetConfigResult Source #
Set a new config to the server.
getConfig :: Minio ByteString Source #
Get the current config file from server.
data ServerVersion Source #
ServerVersion | |
|
Instances
Eq ServerVersion Source # | |
Defined in Network.Minio.AdminAPI (==) :: ServerVersion -> ServerVersion -> Bool # (/=) :: ServerVersion -> ServerVersion -> Bool # | |
Show ServerVersion Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ServerVersion -> ShowS # show :: ServerVersion -> String # showList :: [ServerVersion] -> ShowS # | |
FromJSON ServerVersion Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser ServerVersion # parseJSONList :: Value -> Parser [ServerVersion] # |
data ServiceStatus Source #
Instances
Eq ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI (==) :: ServiceStatus -> ServiceStatus -> Bool # (/=) :: ServiceStatus -> ServiceStatus -> Bool # | |
Show ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ServiceStatus -> ShowS # show :: ServiceStatus -> String # showList :: [ServiceStatus] -> ShowS # | |
FromJSON ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI parseJSON :: Value -> Parser ServiceStatus # parseJSONList :: Value -> Parser [ServiceStatus] # |
serviceStatus :: Minio ServiceStatus Source #
Get server version and uptime.
data ServiceAction Source #
Instances
Eq ServiceAction Source # | |
Defined in Network.Minio.AdminAPI (==) :: ServiceAction -> ServiceAction -> Bool # (/=) :: ServiceAction -> ServiceAction -> Bool # | |
Show ServiceAction Source # | |
Defined in Network.Minio.AdminAPI showsPrec :: Int -> ServiceAction -> ShowS # show :: ServiceAction -> String # showList :: [ServiceAction] -> ShowS # | |
ToJSON ServiceAction Source # | |
Defined in Network.Minio.AdminAPI toJSON :: ServiceAction -> Value # toEncoding :: ServiceAction -> Encoding # toJSONList :: [ServiceAction] -> Value # toEncodingList :: [ServiceAction] -> Encoding # |
serviceSendAction :: ServiceAction -> Minio () Source #
Send service restart or stop action to Minio server.