Kazan v0.2.0 Kazan.Models

Contains generated structs for all Kube models as defined in the OAI specs.

Each namespace underneath Kazan.Models represents a single struct as used by the Kubernetes API.

Also contains functions for serializing & deserializing these generated structs.

Summary

Functions

Decodes data from a Map into a Model struct

Encodes data from a Kazan model to plain Maps suitable for JSON encoding

Functions

decode(data, kind \\ nil)
decode(Map.t, atom | nil) :: {:ok, struct} | {:err, term}

Decodes data from a Map into a Model struct.

encode(model)
encode(struct) :: {:ok, struct} | {:err, term}

Encodes data from a Kazan model to plain Maps suitable for JSON encoding.