RemoteProbe

sealed interface RemoteProbe(source)

Typed, metadata-only inspection of the remote set, for a restore offer.

Inheritors

Types

Link copied to clipboard
data class Failed(val error: CloudError) : RemoteProbe
Link copied to clipboard
class Found(val marker: ByteArray, val source: SourceRef, val files: List<RemoteFile>) : RemoteProbe

A complete set: the marker is readable. marker is its bytes; parse them with your own schema.

Link copied to clipboard
data object None : RemoteProbe

Nothing remote.

Link copied to clipboard
data object NotReady : RemoteProbe

Files exist but the marker is absent or not downloadable yet: a writer never finished, or iCloud is still fetching.

Link copied to clipboard
data class Unavailable(val reason: UnavailableReason) : RemoteProbe