k8s_client v0.1.2 K8s.Client.Swagger

Generates route information from a swagger spec.

Link to this section Summary

Functions

Generates route information from a swagger spec

Returns kubernetes swagger spec

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

spec()
spec() :: [binary()]

Returns kubernetes swagger spec

Can be set via config :k8s_client, spec: "priv/swagger/1.13.json" or via K8S_SPEC

This allows you to use a custom swagger specs with custom CRDs.

Examples

iex> K8s.Client.Swagger.spec()
"priv/swagger/1.13.json"
Link to this function

subaction(path)

Returns the subaction from a path