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 #

Constructors

DriveInfo 

Fields

Instances
Eq DriveInfo # 
Instance details

Defined in Network.Minio.AdminAPI

Show DriveInfo # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON DriveInfo # 
Instance details

Defined in Network.Minio.AdminAPI

data Backend #

Instances
Eq Backend # 
Instance details

Defined in Network.Minio.AdminAPI

Methods

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

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

Show Backend # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON Backend # 
Instance details

Defined in Network.Minio.AdminAPI

data ConnStats #

Constructors

ConnStats 
Instances
Eq ConnStats # 
Instance details

Defined in Network.Minio.AdminAPI

Show ConnStats # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON ConnStats # 
Instance details

Defined in Network.Minio.AdminAPI

data StorageClass #

Constructors

StorageClass 

Fields

Instances
Eq StorageClass # 
Instance details

Defined in Network.Minio.AdminAPI

Show StorageClass # 
Instance details

Defined in Network.Minio.AdminAPI

data StorageInfo #

Constructors

StorageInfo 

Fields

data SIData #

Instances
Eq SIData # 
Instance details

Defined in Network.Minio.AdminAPI

Methods

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

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

Show SIData # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON SIData # 
Instance details

Defined in Network.Minio.AdminAPI

data ServerInfo #

Constructors

ServerInfo 

Fields

Instances
Eq ServerInfo # 
Instance details

Defined in Network.Minio.AdminAPI

Show ServerInfo # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON ServerInfo # 
Instance details

Defined in Network.Minio.AdminAPI

getServerInfo :: Minio [ServerInfo] #

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

data HealOpts #

Constructors

HealOpts 

Fields

Instances
Eq HealOpts # 
Instance details

Defined in Network.Minio.AdminAPI

Show HealOpts # 
Instance details

Defined in Network.Minio.AdminAPI

ToJSON HealOpts # 
Instance details

Defined in Network.Minio.AdminAPI

FromJSON HealOpts # 
Instance details

Defined in Network.Minio.AdminAPI

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 #

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 #

Set a new config to the server.

getConfig :: Minio ByteString #

Get the current config file from server.

serviceStatus :: Minio ServiceStatus #

Get server version and uptime.

serviceSendAction :: ServiceAction -> Minio () #

Send service restart or stop action to Minio server.