BoltAvailability

sealed interface BoltAvailability

Whether a Bolt can be written to on this runtime.

Mirrors FabricAvailability, the pattern this repo already uses for a facility that is real on some runtimes and absent on others. A backend that is scoped out by target is simply not compiled; Unavailable means present-but-not-usable-now.

Inheritors

Types

Link copied to clipboard

The archive is writable. A bolt reporting this must accept an append.

Link copied to clipboard
data class Unavailable(val reason: String) : BoltAvailability

The archive cannot be written to, and the backend knows it — no filesystem on this runtime, a directory that could not be created, a read-only volume.

Link copied to clipboard
data class Unknown(val reason: String) : BoltAvailability

The backend cannot report ground truth right now.