k8s_client v0.1.0 K8s.Client.RouteData

Generates route information from a swagger spec.

Link to this section Summary

Functions

Generates route information from a swagger spec

Returns a list of swagger specs to compile using

Returns the subaction from a path

Link to this section Functions

Link to this function

build(file)
build(binary()) :: map()
build(map()) :: map()

Generates route information from a swagger spec.

Link to this function

specs()
specs() :: [binary()]

Returns a list of swagger specs to compile using.

Can be set via config :k8s_client, specs: ["priv/swagger/1.13.json"] or via K8S_SPECS

Swagger specs will be merged together by operationId.

This allows you to add additional swagger specs for CRDs.

Examples

iex> K8s.Client.RouteData.specs()
["priv/swagger/1.13.json"]
Link to this function

subaction(path)

Returns the subaction from a path