25 lines
788 B
Dart
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);
|
|
}
|