master
h 33 lines 1.05 KB
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 VolumeService.h
8
9 Abstract:
10
11 This file contains the VolumeService definition
12
13 --*/
14 #pragma once
15
16 #include "SessionModel.h"
17 #include "VolumeModel.h"
18 #include "Terminal.h"
19 #include <wslc.h>
20 #include <wslc_schema.h>
21
22 namespace wsl::windows::wslc::services {
23 struct VolumeService
24 {
25 static WSLCVolumeInformation Create(models::Session& session, const models::CreateVolumeOptions& createOptions);
26 static void Delete(models::Session& session, const std::string& name);
27 static std::vector<wsl::windows::common::wslc_schema::VolumeListEntry> List(
28 models::Session& session, const std::vector<std::pair<std::string, std::string>>& filters = {});
29 static wsl::windows::common::wslc_schema::InspectVolume Inspect(models::Session& session, const std::string& name);
30 static models::PruneVolumesResult Prune(
31 Terminal& terminal, models::Session& session, bool all, const std::vector<std::pair<std::string, std::string>>& filters = {});
32 };
33 } // namespace wsl::windows::wslc::services