Alternera.Resource.Checks.Available (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

Whether the host serves resources now (Alternera.Resource.Host.available?/0). Every resource's policies forbid create, read, update and generic actions while it does not; destroy is not refused, so records can always be removed. What makes the host answer false is the host's business, not the package's.

Summary

Functions

eager_evaluate?()

Callback implementation for Ash.Policy.Check.eager_evaluate?/0.

init(opts)

Callback implementation for Ash.Policy.Check.init/1.

prefer_expanded_description?()

Callback implementation for Ash.Policy.Check.prefer_expanded_description?/0.

requires_original_data?(_, _)

Callback implementation for Ash.Policy.Check.requires_original_data?/2.

strict_check(actor, context, opts)

Callback implementation for Ash.Policy.Check.strict_check/3.

type()

Callback implementation for Ash.Policy.Check.type/0.