mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-12 14:57:19 +00:00
14 lines
592 B
Dart
14 lines
592 B
Dart
import 'package:selfprivacy/logic/api_maps/rest_maps/api_map.dart';
|
|
import 'package:selfprivacy/logic/models/hive/server_details.dart';
|
|
|
|
mixin VolumeProviderApi on ApiMap {
|
|
Future<ServerVolume?> createVolume();
|
|
Future<List<ServerVolume>> getVolumes({final String? status});
|
|
Future<ServerVolume?> getVolume(final int id);
|
|
Future<bool> attachVolume(final int volumeId, final int serverId);
|
|
Future<bool> detachVolume(final int volumeId);
|
|
Future<bool> resizeVolume(final int volumeId, final int sizeGb);
|
|
Future<void> deleteVolume(final int id);
|
|
Future<double?> getPricePerGb();
|
|
}
|