Ltix.LaunchClaims.Role.Parser behaviour (Ltix v0.1.0)

Copy Markdown View Source

Defines a behaviour for parsing role URIs into %Role{} structs.

Summary

Callbacks

parse(uri)

@callback parse(uri :: String.t()) :: {:ok, Ltix.LaunchClaims.Role.t()} | :error

to_uri(role)

(optional)
@callback to_uri(role :: Ltix.LaunchClaims.Role.t_without_uri()) ::
  {:ok, String.t()} | :error