| 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 Source #
Constructors
| ErasureInfo | |
Fields
| |
Instances
| Eq ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI | |
| Show ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ErasureInfo -> ShowS # show :: ErasureInfo -> String # showList :: [ErasureInfo] -> ShowS # | |
| FromJSON ErasureInfo Source # | |
Defined in Network.Minio.AdminAPI | |
Constructors
| BackendFS | |
| BackendErasure ErasureInfo |
Constructors
| ConnStats | |
Fields
| |
Constructors
data ServerProps Source #
Constructors
| ServerProps | |
Fields
| |
Instances
| Eq ServerProps Source # | |
Defined in Network.Minio.AdminAPI | |
| Show ServerProps Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerProps -> ShowS # show :: ServerProps -> String # showList :: [ServerProps] -> ShowS # | |
| FromJSON ServerProps Source # | |
Defined in Network.Minio.AdminAPI | |
data CountNAvgTime Source #
Constructors
| CountNAvgTime | |
Fields
| |
Instances
| Eq CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: CountNAvgTime -> CountNAvgTime -> Bool # (/=) :: CountNAvgTime -> CountNAvgTime -> Bool # | |
| Show CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> CountNAvgTime -> ShowS # show :: CountNAvgTime -> String # showList :: [CountNAvgTime] -> ShowS # | |
| FromJSON CountNAvgTime Source # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser CountNAvgTime # parseJSONList :: Value -> Parser [CountNAvgTime] # | |
data StorageClass Source #
Constructors
| StorageClass | |
Instances
| Eq StorageClass Source # | |
Defined in Network.Minio.AdminAPI | |
| Show StorageClass Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> StorageClass -> ShowS # show :: StorageClass -> String # showList :: [StorageClass] -> ShowS # | |
data StorageInfo Source #
Constructors
| StorageInfo | |
Instances
| Eq StorageInfo Source # | |
Defined in Network.Minio.AdminAPI | |
| Show StorageInfo Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> StorageInfo -> ShowS # show :: StorageInfo -> String # showList :: [StorageInfo] -> ShowS # | |
| FromJSON StorageInfo Source # | |
Defined in Network.Minio.AdminAPI | |
data ServerInfo Source #
Instances
| Eq ServerInfo Source # | |
Defined in Network.Minio.AdminAPI | |
| Show ServerInfo Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerInfo -> ShowS # show :: ServerInfo -> String # showList :: [ServerInfo] -> ShowS # | |
| FromJSON ServerInfo Source # | |
Defined in Network.Minio.AdminAPI | |
getServerInfo :: Minio [ServerInfo] Source #
Fetches information for all cluster nodes, such as server properties, storage information, network statistics, etc.
Constructors
| HealOpts | |
Fields
| |
data HealResultItem Source #
Constructors
| HealResultItem | |
Fields
| |
Instances
| Eq HealResultItem Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: HealResultItem -> HealResultItem -> Bool # (/=) :: HealResultItem -> HealResultItem -> Bool # | |
| Show HealResultItem Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealResultItem -> ShowS # show :: HealResultItem -> String # showList :: [HealResultItem] -> ShowS # | |
| FromJSON HealResultItem Source # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser HealResultItem # parseJSONList :: Value -> Parser [HealResultItem] # | |
data HealStatus Source #
Constructors
| HealStatus | |
Fields
| |
Instances
| Eq HealStatus Source # | |
Defined in Network.Minio.AdminAPI | |
| Show HealStatus Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealStatus -> ShowS # show :: HealStatus -> String # showList :: [HealStatus] -> ShowS # | |
| FromJSON HealStatus Source # | |
Defined in Network.Minio.AdminAPI | |
data HealStartResp Source #
Constructors
| HealStartResp | |
Fields
| |
Instances
| Eq HealStartResp Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: HealStartResp -> HealStartResp -> Bool # (/=) :: HealStartResp -> HealStartResp -> Bool # | |
| Show HealStartResp Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> HealStartResp -> ShowS # show :: HealStartResp -> String # showList :: [HealStartResp] -> ShowS # | |
| FromJSON HealStartResp Source # | |
Defined in Network.Minio.AdminAPI Methods 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 #
Constructors
| SetConfigResult | |
Fields
| |
Instances
| Eq SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: SetConfigResult -> SetConfigResult -> Bool # (/=) :: SetConfigResult -> SetConfigResult -> Bool # | |
| Show SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> SetConfigResult -> ShowS # show :: SetConfigResult -> String # showList :: [SetConfigResult] -> ShowS # | |
| FromJSON SetConfigResult Source # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser SetConfigResult # parseJSONList :: Value -> Parser [SetConfigResult] # | |
data NodeSummary Source #
Constructors
| NodeSummary | |
Instances
| Eq NodeSummary Source # | |
Defined in Network.Minio.AdminAPI | |
| Show NodeSummary Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> NodeSummary -> ShowS # show :: NodeSummary -> String # showList :: [NodeSummary] -> ShowS # | |
| FromJSON NodeSummary Source # | |
Defined in Network.Minio.AdminAPI | |
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 #
Constructors
| ServerVersion | |
Fields
| |
Instances
| Eq ServerVersion Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServerVersion -> ServerVersion -> Bool # (/=) :: ServerVersion -> ServerVersion -> Bool # | |
| Show ServerVersion Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServerVersion -> ShowS # show :: ServerVersion -> String # showList :: [ServerVersion] -> ShowS # | |
| FromJSON ServerVersion Source # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser ServerVersion # parseJSONList :: Value -> Parser [ServerVersion] # | |
data ServiceStatus Source #
Constructors
| ServiceStatus | |
Fields | |
Instances
| Eq ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServiceStatus -> ServiceStatus -> Bool # (/=) :: ServiceStatus -> ServiceStatus -> Bool # | |
| Show ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServiceStatus -> ShowS # show :: ServiceStatus -> String # showList :: [ServiceStatus] -> ShowS # | |
| FromJSON ServiceStatus Source # | |
Defined in Network.Minio.AdminAPI Methods parseJSON :: Value -> Parser ServiceStatus # parseJSONList :: Value -> Parser [ServiceStatus] # | |
serviceStatus :: Minio ServiceStatus Source #
Get server version and uptime.
data ServiceAction Source #
Constructors
| ServiceActionRestart | |
| ServiceActionStop |
Instances
| Eq ServiceAction Source # | |
Defined in Network.Minio.AdminAPI Methods (==) :: ServiceAction -> ServiceAction -> Bool # (/=) :: ServiceAction -> ServiceAction -> Bool # | |
| Show ServiceAction Source # | |
Defined in Network.Minio.AdminAPI Methods showsPrec :: Int -> ServiceAction -> ShowS # show :: ServiceAction -> String # showList :: [ServiceAction] -> ShowS # | |
| ToJSON ServiceAction Source # | |
Defined in Network.Minio.AdminAPI Methods 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.