Hyper.Node.Layer.Repo (Hyper v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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

Test whether the system appears configured for the node registry.

Functions

find_layer(id)

@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()

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

Test whether the system appears configured for the node registry.