Files
PeachDeployments/lib/Peach/memory/ConnectInternalMemory.dart
alvocool 38881d1fe1 Add app source and tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 10:15:30 +03:00

25 lines
788 B
Dart

import '../about/internal/application/DeploymentRecord.dart';
import '../about/internal/application/ServerProfile.dart';
/// Everything Peach persists on this device. Server profiles and their nested
/// services live here; passwords are held separately in the OS keystore and
/// hydrated onto the profiles on read, so a caller never handles the two
/// stores independently.
abstract class ConnectInternalMemory {
Future<List<ServerProfile>> getServers();
Future setServers(List<ServerProfile> servers);
Future deleteServerSecret(String serverId);
Future<List<DeploymentRecord>> getDeployments();
Future<List<DeploymentRecord>> addDeployment(DeploymentRecord record);
Future clearDeployments();
Future<String> getThemeMode();
Future setThemeMode(String mode);
}