MountRecord class

A persisted record of one OmnyDrive mount the client manages.

A mount binds a local source (a directory, or a git URL) to a path on a connected node. The synchronization anchor and last-known status live in syncState, reusing OmnyDrive's own types so the client and engine agree on references.

Constructors

MountRecord({required String id, required String nodeId, required String name, required String kind, required String remotePath, required bool readWrite, required String driveId, required DateTime mountedAt, required SyncState syncState, String? localPath, String? gitUrl, String? gitBranch})
Creates a mount record.
MountRecord.fromJson(Map<String, dynamic> json)
Decodes a record from JSON.
factory

Properties

accessMode → AccessMode
The mount's access mode.
no setter
driveId String
The synthetic OmnyDrive drive id scoping this mount.
final
gitBranch String?
The git branch to track (git kind), if any.
final
gitUrl String?
The git repository URL (git kind), if any.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable mount id (e.g. web-01-docs-3f2a).
final
isGit bool
Whether this is a git mount.
no setter
kind String
dir or git.
final
localPath String?
The local source directory (dir kind), if any.
final
mountedAt DateTime
When the mount was created.
final
name String
Human-friendly mount name.
final
nodeId String
The target node id.
final
readWrite bool
Whether the node mirror is writable (changes can sync back).
final
remotePath String
The path the mount occupies on the node.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncState → SyncState
The current synchronization state (baseline ref, status, last error).
final

Methods

copyWith({SyncState? syncState}) MountRecord
Returns a copy with a new syncState.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited