Spectre.Governance.GC.InventoryProvider behaviour (Spectre v0.3.0)

Copy Markdown View Source

Trusted host contract for a fenced, complete GC inventory snapshot.

Summary

Types

config()

@type config() :: module() | {module(), keyword()}

Callbacks

snapshot(config, keyword)

@callback snapshot(
  Spectre.Definition.Store.config(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Functions

load(config, store, opts)

@spec load(config(), Spectre.Definition.Store.config(), keyword()) ::
  {:ok, map()} | {:error, term()}