lxd-client-config-0.1.0.1: Read the configuration file of the standard LXD client.

Safe HaskellNone
LanguageHaskell2010

System.LXD.Client.Config

Contents

Synopsis

Files

defaultFile :: IO FilePath #

Return the file path of the default configuration file.

parseDefaultFile :: IO Config #

Parse the default configuration file

Throws an IO exception or a ParseException

parseFile :: FilePath -> IO Config #

Parse the given configuration file.

Throws an IO exception or a ParseException

Types

data Config #

The main configuration of the default LXD client.

Represents the file at ~/.config/lxc/config.yml.

Instances
Eq Config # 
Instance details

Defined in System.LXD.Client.Config

Methods

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

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

Show Config # 
Instance details

Defined in System.LXD.Client.Config

ToJSON Config # 
Instance details

Defined in System.LXD.Client.Config

FromJSON Config # 
Instance details

Defined in System.LXD.Client.Config

data Remote #

The configuration of a remote.

Used by Config.

Instances
Eq Remote # 
Instance details

Defined in System.LXD.Client.Config

Methods

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

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

Show Remote # 
Instance details

Defined in System.LXD.Client.Config

ToJSON Remote # 
Instance details

Defined in System.LXD.Client.Config

FromJSON Remote # 
Instance details

Defined in System.LXD.Client.Config