Astarte.Core.Triggers.Policy (astarte_core v1.1.1) View Source
Link to this section Summary
Functions
Creates a Policy
from a PolicyProto
.
Returns {:ok, %Policy{}}
on success, {:error, :invalid_policy_data}
on failure
Creates a Policy
from a PolicyProto
.
Creates a PolicyProto
from a Policy
.
Link to this section Functions
Creates a Policy
from a PolicyProto
.
Returns {:ok, %Policy{}}
on success, {:error, :invalid_policy_data}
on failure
Creates a Policy
from a PolicyProto
.
Returns the %Policy{}
on success,
raises on failure
Creates a PolicyProto
from a Policy
.
It is assumed that the Policy
is valid and constructed using Policy.changeset
Returns a %PolicyProto{}