mirror of
https://github.com/Grace-Solutions/PSProxmox.git
synced 2026-08-10 15:16:57 +00:00
PSProxmox Source Code
This directory contains the C# source code for the PSProxmox module.
Structure
- Client/: Contains the API client code
- Cmdlets/: Contains the PowerShell cmdlet implementations
- IPAM/: Contains the IP address management code
- Models/: Contains the data models
- Session/: Contains the session management code
- Templates/: Contains the template management code
- Utilities/: Contains utility functions
- bin/: Contains the compiled DLL (created during build)
- obj/: Contains intermediate build files (created during build)
- PSProxmox.Main.csproj: The main project file
- PSProxmox.Main.sln: The solution file
Building
The source code is built using the build script in the Scripts directory:
.\Scripts\build.ps1
This will compile the C# code and place the DLL in the Module\bin directory.
Development
Adding a New Cmdlet
- Create a new file in the Cmdlets directory
- Implement the cmdlet class
- Add the cmdlet to the CmdletsToExport array in the Module\PSProxmox.psd1 file
Adding a New Model
- Create a new file in the Models directory
- Implement the model class
Adding a New API Client Method
- Add the method to the ProxmoxApiClient class in the Client directory
Documentation
For detailed documentation, see the Documentation directory.