| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | ContainerTasks.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | Declaration of container command execution tasks. |
| 12 | |
| 13 | --*/ |
| 14 | #pragma once |
| 15 | #include "CLIExecutionContext.h" |
| 16 | #include "Task.h" |
| 17 | |
| 18 | using wsl::windows::wslc::execution::CLIExecutionContext; |
| 19 | |
| 20 | namespace wsl::windows::wslc::task { |
| 21 | |
| 22 | struct AttachContainer : public Task |
| 23 | { |
| 24 | AttachContainer(const std::wstring& containerId) : m_containerId(containerId) |
| 25 | { |
| 26 | } |
| 27 | void operator()(CLIExecutionContext& context) const override; |
| 28 | |
| 29 | private: |
| 30 | std::wstring m_containerId; |
| 31 | }; |
| 32 | |
| 33 | void CreateContainer(CLIExecutionContext& context); |
| 34 | void ContainerCp(CLIExecutionContext& context); |
| 35 | void ExecContainer(CLIExecutionContext& context); |
| 36 | void ExportContainer(CLIExecutionContext& context); |
| 37 | void GetContainers(CLIExecutionContext& context); |
| 38 | void InspectContainers(CLIExecutionContext& context); |
| 39 | void KillContainers(CLIExecutionContext& context); |
| 40 | void ListContainers(CLIExecutionContext& context); |
| 41 | void PruneContainers(CLIExecutionContext& context); |
| 42 | void RemoveContainers(CLIExecutionContext& context); |
| 43 | void RestartContainers(CLIExecutionContext& context); |
| 44 | void RunContainer(CLIExecutionContext& context); |
| 45 | void SetContainerOptionsFromArgs(CLIExecutionContext& context); |
| 46 | void ShowContainerStats(CLIExecutionContext& context); |
| 47 | void StartContainer(CLIExecutionContext& context); |
| 48 | void StopContainers(CLIExecutionContext& context); |
| 49 | void ViewContainerLogs(CLIExecutionContext& context); |
| 50 | } // namespace wsl::windows::wslc::task |