Table

zio.config.ConfigDocsModule.Table
See theTable companion class
object Table

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Table.type

Members list

Type members

Classlikes

object FieldName

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
FieldName.type
sealed trait FieldName

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Blank
class Key
object Format

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Format.type
sealed trait Format

Format is further used in Table which is used for config documentation. Format helps the readers of the documentation understand the details of the format of each paths that forms their application config.

Format is further used in Table which is used for config documentation. Format helps the readers of the documentation understand the details of the format of each paths that forms their application config.

Example: A format can be List, Map, Primitive, or it can even be even more complex such as AllOf or AnyOneOf. If Format of paths K is AllOf, it implies that there are more distinct paths under the paths K, and user need to satisfy (i.e, provide them in the source) all of the paths under K.

If Format of paths K is AnyOneOf, it implies there are more distinct paths under the paths K, then user need to satisfy (i.e, provide them in the source) any one of the paths under K.

If Format of oaths K is Recursion then that means there is a repetition of same path structure under the paths K

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AllOf
object AnyOneOf
object List
object Map
object Nested
object NotApplicable
object Primitive
object Recursion
object RecursionList
Show all
Self type
sealed abstract case class Heading(path: List[FieldName])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Heading

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Heading.type
sealed abstract case class Link(value: String)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Link

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Link.type
case class TableRow(paths: List[FieldName], format: Option[Format], description: List[Description], nested: Option[Table], sources: Set[String])

A TableRow represents each row in a Table which is an intermediate light-weight structure produced from ConfigDocs. Table is more easier to be converted to formats such as Json, markdown or any custom format fo your choice.

A TableRow represents each row in a Table which is an intermediate light-weight structure produced from ConfigDocs. Table is more easier to be converted to formats such as Json, markdown or any custom format fo your choice.

Value parameters

description

: Description (zio-config in-built or user-provided) of the key (paths).

format

: The format of value of key (paths). Example: it can be a Primitive type (String, Int etc), or it can be complex structures as such as List or Map.

nested

: A TableRow can be pointed to a nested table that has the details of all the child paths that are under paths. Hence TableRow is a recursive structure.

paths

: Each config key is basically a list of paths representing its hierarchy. Example: "aws.ec2.instance.type" where list of paths is List("aws", "ec2", "instance", "type")

sources:

All the sources from which paths can be retrieved.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Internal function that represents the creation of a github flavoured markdown. The implementation can be used as reference for users who would like to produce a different style markdown rendering by specifying how to create Link given a Heading, Int representing the index of the key (or paths) and Either[FieldName, Format].

Internal function that represents the creation of a github flavoured markdown. The implementation can be used as reference for users who would like to produce a different style markdown rendering by specifying how to create Link given a Heading, Int representing the index of the key (or paths) and Either[FieldName, Format].

The index exists because it represents the index of a heading (which is the individual key of paths) in markdown. This is usually zero for all headings unless there are duplicate headings in the markdown. There is a possibility of duplicate headings in the markdown, if for instance, given a path x.y and k.y, the heading y can appear twice in the markdown file with indices as 0 and 1. Depending on the flavour of markdown (Example: Github, Confluence) we have different ways to produce links towards those headings. In this case, we employ the strategy used by Github.

Attributes

def singletonTable(tableRow: TableRow): Table