PacketFlow.Intent.Plugin.Behaviour behaviour (packetflow v0.1.0)

Behaviour for intent plugins

Summary

Callbacks

compose(list, any)

@callback compose(list(), any()) :: {:ok, any()} | {:error, any()}

plugin_type()

@callback plugin_type() :: atom()

priority()

@callback priority() :: integer()

route(any, list)

@callback route(any(), list()) :: {:ok, any()} | {:error, any()}

transform(any)

@callback transform(any()) :: {:ok, any()} | {:error, any()}

validate(any)

@callback validate(any()) :: {:ok, any()} | {:error, any()}