minio-hs-1.2.0: A Minio Haskell Library for Amazon S3 compatible cloud storage.

Safe HaskellNone
LanguageHaskell2010

Network.Minio.AdminAPI

Contents

Synopsis

Minio Admin API

Provides Minio admin API and related types. It is in experimental state.

data DriveInfo Source #

Constructors

DriveInfo 

Fields

Instances
Eq DriveInfo Source # 
Instance details

Defined in Network.Minio.AdminAPI

Show DriveInfo Source # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON DriveInfo Source # 
Instance details

Defined in Network.Minio.AdminAPI

data Backend Source #

Instances
Eq Backend Source # 
Instance details

Defined in Network.Minio.AdminAPI

Methods

(==) :: Backend -> Backend -> Bool #

(/=) :: Backend -> Backend -> Bool #

Show Backend Source # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON Backend Source # 
Instance details

Defined in Network.Minio.AdminAPI

data ConnStats Source #

Constructors

ConnStats 
Instances
Eq ConnStats Source # 
Instance details

Defined in Network.Minio.AdminAPI

Show ConnStats Source # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON ConnStats Source # 
Instance details

Defined in Network.Minio.AdminAPI

data SIData Source #

Instances
Eq SIData Source # 
Instance details

Defined in Network.Minio.AdminAPI

Methods

(==) :: SIData -> SIData -> Bool #

(/=) :: SIData -> SIData -> Bool #

Show SIData Source # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON SIData Source # 
Instance details

Defined in Network.Minio.AdminAPI

getServerInfo :: Minio [ServerInfo] Source #

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

data HealOpts Source #

Constructors

HealOpts 

Fields

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 #

Get the progress of currently running heal task, this API should be invoked right after startHeal. token is obtained after startHeal which should be used to get the heal status.

setConfig :: ByteString -> Minio SetConfigResult Source #

Set a new config to the server.

getConfig :: Minio ByteString Source #

Get the current config file from server.

serviceStatus :: Minio ServiceStatus Source #

Get server version and uptime.

serviceSendAction :: ServiceAction -> Minio () Source #

Send service restart or stop action to Minio server.