# `Hyper.Node.Layer.Repo`
[🔗](https://github.com/harmont-dev/hyper/blob/main/lib/hyper/node/layer/repo.ex#L1)

Repo for looking up layers in the shared layer directory. Currently backed by a flat
file-directory.

Hyper expects you to keep your layers in a flat directory, which may be backed by anything you
like: a plain filesystem, an NFS drive. This registry only ever is used to find paths to layers
but not anything more.

# `find_layer`

```elixir
@spec find_layer(Hyper.Layer.id()) :: {:ok, Path.t()} | {:error, File.posix()}
```

Resolve a layer's path. `{:error, :enoent}` if absent, `{:error, posix}` on I/O error.

# `test_system`

```elixir
@spec test_system() :: :ok | {:error, term()}
```

Test whether the system appears configured for the node registry.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
