mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-12 14:57:19 +00:00
We already have an abstraction for size, there is no need to pass size value as raw numeric variables
15 lines
691 B
Dart
15 lines
691 B
Dart
import 'package:selfprivacy/logic/api_maps/rest_maps/api_map.dart';
|
|
import 'package:selfprivacy/logic/models/disk_size.dart';
|
|
import 'package:selfprivacy/logic/models/hive/server_details.dart';
|
|
import 'package:selfprivacy/logic/models/price.dart';
|
|
|
|
mixin VolumeProviderApi on ApiMap {
|
|
Future<ServerVolume?> createVolume();
|
|
Future<List<ServerVolume>> getVolumes({final String? status});
|
|
Future<bool> attachVolume(final ServerVolume volume, final int serverId);
|
|
Future<bool> detachVolume(final ServerVolume volume);
|
|
Future<bool> resizeVolume(final ServerVolume volume, final DiskSize size);
|
|
Future<void> deleteVolume(final ServerVolume volume);
|
|
Future<Price?> getPricePerGb();
|
|
}
|