Railyard v0.1.0 Railyard.Provider protocol View Source

The protocol that a Railyard provider must implement in order to create resources of that type. See Railyard.Fs.File for a simple example.

Link to this section Summary

Link to this section Types

Link to this type

bindings() View Source
bindings() :: list()

Link to this type

error() View Source
error() :: {:error, String.t()}

Link to this type

ok_or_error() View Source
ok_or_error() :: {:ok, state()} | error()

Link to this type

resource() View Source
resource() :: any()

Link to this section Functions

Link to this function

action(resource, action, bindings, state) View Source

Link to this function

cleanup(resource, state) View Source

Link to this function

init(resource, bindings) View Source

Link to this function

ship(resource, bindings, state) View Source