Exgit.RefStore protocol (exgit v0.1.0)

Copy Markdown View Source

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

delete(store, ref)

@spec delete(t(), String.t()) :: {:ok, t()} | {:error, term()}

list(store, prefix)

@spec list(t(), String.t()) :: [{String.t(), term()}]

read(store, ref)

@spec read(t(), String.t()) :: {:ok, term()} | {:error, term()}

resolve(store, ref)

@spec resolve(t(), String.t()) :: {:ok, binary()} | {:error, term()}

write(store, ref, value, opts)

@spec write(t(), String.t(), term(), keyword()) :: {:ok, t()} | {:error, term()}