SkillKit.Kit.Provider behaviour (SkillKit v0.1.0)

Copy Markdown View Source

Behaviour for skill kit providers.

Host applications implement this behaviour for their own storage.

Summary

Callbacks

get_kit(config, name)

(optional)
@callback get_kit(config :: keyword(), name :: String.t()) ::
  {:ok, SkillKit.Kit.t()} | {:error, :not_found}

list_kits(config)

(optional)
@callback list_kits(config :: keyword()) :: {:ok, [SkillKit.Kit.t()]} | {:error, term()}

load_kits(config)

(optional)
@callback load_kits(config :: keyword()) :: {:ok, [SkillKit.Kit.t()]} | {:error, term()}