Bella.Naming (bella v0.0.1) View Source
Naming functions
Link to this section Summary
Functions
Converts an elixir module name to a string for use as the CRD's kind
.
Extract the CRD API version from the module name. Defaults to "v1"
Link to this section Functions
Specs
Converts an elixir module name to a string for use as the CRD's kind
.
Examples
iex> Bella.Naming.module_to_kind(Pod)
"Pod"
iex> Bella.Naming.module_to_kind(Controllers.V1.Pod)
"Pod"
Specs
Extract the CRD API version from the module name. Defaults to "v1"
Examples
iex> Bella.Naming.module_version(Pod)
"v1"
iex> Bella.Naming.module_version(Controllers.V1.Pod)
"v1"
iex> Bella.Naming.module_version(Controllers.V1Alpha1.Pod)
"v1alpha1"