Package

knobs

Permalink

package knobs

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. knobs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class BaseConfig(paths: IORef[List[(Name, KnobsResource)]], cfgMap: IORef[Env], subs: IORef[Map[Pattern, List[ChangeHandler]]]) extends Product with Serializable

    Permalink

    Global configuration data.

    Global configuration data. This is the top-level config from which Config values are derived by choosing a root location.

  2. case class Bind(name: Name, value: CfgValue) extends Directive with Product with Serializable

    Permalink
  3. case class CfgBool(value: Boolean) extends CfgValue with Product with Serializable

    Permalink
  4. case class CfgDuration(value: Duration) extends CfgValue with Product with Serializable

    Permalink
  5. case class CfgList(value: List[CfgValue]) extends CfgValue with Product with Serializable

    Permalink
  6. case class CfgNumber(value: Double) extends CfgValue with Product with Serializable

    Permalink
  7. case class CfgText(value: String) extends CfgValue with Product with Serializable

    Permalink
  8. sealed trait CfgValue extends AnyRef

    Permalink

    A bound configuration value

  9. type ChangeHandler = (Name, Option[CfgValue]) ⇒ Task[Unit]

    Permalink

    A change handler takes the Name of the property that changed, the value of that property (or None if the property was removed), and produces a Task to perform in reaction to that change.

  10. case class Config(env: Env) extends Product with Serializable

    Permalink

    Immutable configuration data

  11. case class ConfigError[R](path: R, err: String)(implicit evidence$1: Resource[R]) extends Exception with Product with Serializable

    Permalink

    An error during parsing of a configuration file

  12. trait Configured[A] extends AnyRef

    Permalink

    The class of types that can be automatically and safely converted from a CfgValue to a destination type.

    The class of types that can be automatically and safely converted from a CfgValue to a destination type. If conversion fails because the types are not compatible, None is returned.

  13. sealed trait Directive extends AnyRef

    Permalink

    A directive in a configuration file

  14. type Env = Map[Name, CfgValue]

    Permalink

    A pure configuration environment map, detached from its sources

  15. case class Exact(name: Name) extends Pattern with Product with Serializable

    Permalink

    An exact match

  16. case class Group(name: Name, directives: List[Directive]) extends Directive with Product with Serializable

    Permalink
  17. sealed abstract class IORef[A] extends AnyRef

    Permalink

    An atomically updatable reference, guarded by the Task monad.

  18. case class Import(path: Path) extends Directive with Product with Serializable

    Permalink
  19. case class Interpolate(text: String) extends Interpolation with Product with Serializable

    Permalink
  20. sealed trait Interpolation extends AnyRef

    Permalink
  21. case class KeyError(name: String) extends Exception with Product with Serializable

    Permalink
  22. type KnobsResource = Worth[ResourceBox]

    Permalink

    exists r.

    exists r. Resource r ⇒ Required r | Optional r

  23. case class Literal(text: String) extends Interpolation with Product with Serializable

    Permalink
  24. case class MutableConfig(root: String, base: BaseConfig) extends Product with Serializable

    Permalink

    Mutable, reloadable, configuration data

  25. type Name = String

    Permalink

    The name of a configuration property

  26. case class Optional[A](worth: A) extends Worth[A] with Product with Serializable

    Permalink
  27. case class ParseException(msg: String) extends RuntimeException with Product with Serializable

    Permalink

    A small exception modeling class used by Config.parse if the parsing failed.

  28. type Path = String

    Permalink

    A path-like string

  29. sealed trait Pattern extends AnyRef

    Permalink

    A pattern that matches a Name either exactly or as a prefix.

  30. case class Prefix(name: Name) extends Pattern with Product with Serializable

    Permalink

    A prefix match.

    A prefix match. Given Prefix("foo"), this will match "foo.bar", but not "foo" or "foobar".

  31. case class Required[A](worth: A) extends Worth[A] with Product with Serializable

    Permalink
  32. trait Resource[R] extends Show[R]

    Permalink

    Resources from which configuration files can be loaded

  33. sealed trait ResourceBox extends AnyRef

    Permalink

    An existential resource.

    An existential resource. Equivalent to the (Haskell-style) type exists r. Resource r ⇒ r

  34. sealed trait Valuable[V] extends AnyRef

    Permalink
  35. trait Watchable[R] extends Resource[R]

    Permalink
  36. sealed trait Worth[A] extends AnyRef

    Permalink

    A value that is either required or optional.

Value Members

  1. object ClassPathResource

    Permalink
  2. object Config extends Serializable

    Permalink
  3. object ConfigParser

    Permalink
  4. object Configured

    Permalink
  5. object FileResource

    Permalink
  6. object IORef

    Permalink
  7. object Pattern

    Permalink
  8. object Resource

    Permalink
  9. object ResourceBox

    Permalink
  10. object SysPropsResource

    Permalink
  11. object URIResource

    Permalink
  12. object Valuable

    Permalink
  13. object Watched

    Permalink
  14. object Worth

    Permalink
  15. object aws

    Permalink

    Reads a set of configuration information from the running machine within the AWS environment.

    Reads a set of configuration information from the running machine within the AWS environment. Amazon documentaiton can be found here:

    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

  16. object compatibility

    Permalink
  17. def importsOf[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[KnobsResource]

    Permalink

    Get all the imports in the given list of directives, relative to the given path

  18. def load(files: List[KnobsResource], pool: ExecutorService = Resource.notificationPool): Task[MutableConfig]

    Permalink

    Create a MutableConfig from the contents of the given resources.

    Create a MutableConfig from the contents of the given resources. Throws an exception on error, such as if files do not exist or contain errors.

    File names have any environment variables expanded prior to the first time they are opened, so you can specify a file name such as "$(HOME)/myapp.cfg".

  19. def loadGroups(files: List[(Name, KnobsResource)], pool: ExecutorService = Resource.notificationPool): Task[MutableConfig]

    Permalink

    Create a MutableConfig from the contents of the named files, placing them into named prefixes.

  20. def loadImmutable(files: List[KnobsResource], pool: ExecutorService = Resource.notificationPool): Task[Config]

    Permalink

    Create an immutable Config from the contents of the named files.

    Create an immutable Config from the contents of the named files. Throws an exception on error, such as if files do not exist or contain errors.

    File names have any environment variables expanded prior to the first time they are opened, so you can specify a file name such as "$(HOME)/myapp.cfg".

  21. def recursiveImports[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): Task[List[R]]

    Permalink

    Get all the imports in the given list of directive, recursively resolving imports relative to the given path by loading them.

  22. def resolveImports[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[R]

    Permalink

    Get all the imports in the given list of directives, relative to the given path

  23. def when[M[_]](b: Boolean)(m: M[Unit])(implicit arg0: Monad[M]): M[Unit]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped