pureconfig.module.yaml
Members list
Packages
Type members
Classlikes
A ConfigSource
that reads configs from YAML documents in a stream, file or string.
A ConfigSource
that reads configs from YAML documents in a stream, file or string.
Value parameters
- getReader
-
the thunk to generate a
Reader
instance from which the YAML document will be read. This parameter won't be memoized so it can be used with dynamic sources (e.g. URLs) - onIOFailure
-
an optional function used to provide a custom failure when IO errors happen
- uri
-
the optional URI of the source. Used only to provide better error messages.
Attributes
- Companion
- object
- Supertypes
-
trait ConfigSourceclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
YamlConfigSource.type
Value members
Deprecated methods
Loads a configuration of type Config
from the given YAML file.
Loads a configuration of type Config
from the given YAML file.
Value parameters
- path
-
the path of the YAML file to read
Attributes
- Returns
-
A
Success
with the configuration if it is possible to create an instance of typeConfig
from the YAML file, else aFailure
with details on why it isn't possible - Deprecated
- true
Loads a configuration of type Config
from the given YAML file.
Loads a configuration of type Config
from the given YAML file.
Value parameters
- namespace
-
the base namespace from which the configuration should be load
- path
-
the path of the YAML file to read
Attributes
- Returns
-
A
Success
with the configuration if it is possible to create an instance of typeConfig
from the YAML file, else aFailure
with details on why it isn't possible - Deprecated
- true
Loads a configuration of type Config
from the given string.
Loads a configuration of type Config
from the given string.
Value parameters
- content
-
the string containing the YAML document
Attributes
- Returns
-
A
Success
with the configuration if it is possible to create an instance of typeConfig
fromcontent
, else aFailure
with details on why it isn't possible - Deprecated
- true
Attributes
- Deprecated
- true
Loads a configuration of type Config
from the given YAML file.
Loads a configuration of type Config
from the given YAML file.
Value parameters
- path
-
the path of the YAML file to read
Attributes
- Returns
-
the configuration
- Deprecated
- true
Loads a configuration of type Config
from the given YAML file.
Loads a configuration of type Config
from the given YAML file.
Value parameters
- namespace
-
the base namespace from which the configuration should be load
- path
-
the path of the YAML file to read
Attributes
- Returns
-
the configuration
- Deprecated
- true
Loads a configuration of type Config
from the given string.
Loads a configuration of type Config
from the given string.
Value parameters
- content
-
the string containing the YAML document
Attributes
- Returns
-
the configuration
- Deprecated
- true
Loads a configuration of type Config
from the given string.
Loads a configuration of type Config
from the given string.
Value parameters
- content
-
the string containing the YAML document
- namespace
-
the base namespace from which the configuration should be load
Attributes
- Returns
-
the configuration
- Deprecated
- true
Loads a configuration of type Config
from the given multi-document YAML file. Config
must have a ConfigReader
supporting reading from config lists.
Loads a configuration of type Config
from the given multi-document YAML file. Config
must have a ConfigReader
supporting reading from config lists.
Value parameters
- path
-
the path of the YAML file to read
Attributes
- Returns
-
A
Success
with the configuration if it is possible to create an instance of typeConfig
from the multi-document YAML file, else aFailure
with details on why it isn't possible - Deprecated
- true
Loads a configuration of type Config
from the given multi-document string. Config
must have a ConfigReader
supporting reading from config lists.
Loads a configuration of type Config
from the given multi-document string. Config
must have a ConfigReader
supporting reading from config lists.
Value parameters
- content
-
the string containing the YAML documents
Attributes
- Returns
-
A
Success
with the configuration if it is possible to create an instance of typeConfig
from the multi-document string, else aFailure
with details on why it isn't possible - Deprecated
- true
Loads a configuration of type Config
from the given multi-document YAML file. Config
must have a ConfigReader
supporting reading from config lists.
Loads a configuration of type Config
from the given multi-document YAML file. Config
must have a ConfigReader
supporting reading from config lists.
Value parameters
- path
-
the path of the YAML file to read
Attributes
- Returns
-
the configuration
- Deprecated
- true
Loads a configuration of type Config
from the given multi-document string. Config
must have a ConfigReader
supporting reading from config lists.
Loads a configuration of type Config
from the given multi-document string. Config
must have a ConfigReader
supporting reading from config lists.
Value parameters
- content
-
the string containing the YAML documents
Attributes
- Returns
-
the configuration
- Deprecated
- true