Skip to content

Sources

Javier Diaz edited this page Aug 19, 2018 · 3 revisions

A source is just a really simple interface which will be the one that will get the file from wherever needs to be fetched. The interface will just have a method that returns an InputStream which will hold the stream of bytes of the configuration.

interface ConfigSource {
    fun read(): InputStream
}

There are plenty of configuration sources already built in. Here's a list (in core):

  1. File system
  2. Classpath
  3. Git
  4. URL
  5. S3
  6. Bitbucket
  7. Github
  8. String
  9. StringRotation
  10. Function
  11. StringFunction
  12. InputStream
Clone this wiki locally