GroundPlane.Contracts.Fence.Identity (GroundPlane Contracts v0.1.0)

Copy Markdown View Source

Stable identity facts for a fenced lease.

Summary

Types

t()

@type t() :: %GroundPlane.Contracts.Fence.Identity{
  holder: String.t(),
  lease_id: String.t(),
  resource: String.t()
}

Functions

new(attrs)

@spec new(map() | keyword()) :: {:ok, t()} | {:error, term()}

to_map(identity)

@spec to_map(t()) :: map()