Add app source and tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
lib/Peach/memory/ConnectInternalMemory.dart
Normal file
24
lib/Peach/memory/ConnectInternalMemory.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user