Crosswake.Manifest.Serializer (crosswake v0.1.0)

View Source

Deterministic JSON renderer and idempotent writer for the canonical manifest artifact.

Summary

Types

action()

@type action() :: :created | :reused | :updated

Functions

render(manifest)

@spec render(Crosswake.Manifest.Types.Root.t()) :: String.t()

write(path, manifest)

@spec write(String.t(), Crosswake.Manifest.Types.Root.t()) :: {:ok, action()}