[GH-ISSUE #118] complete container support #22

Closed
opened 2026-03-03 15:29:40 +03:00 by kerem · 4 comments
Owner

Originally created by @xortim on GitHub (Feb 24, 2024).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/118

This looks like a really promising library, thank you for sharing it.

Looking over the PVE API and the functionality implemented in the library. I was thinking the following enhancements would be helpful:

  • Implement node.NewContainer()
  • Add ContainerConfig struct
  • Add ContainerConfig field to Container struct
  • Update node.Container() to include container.Config

This shouldn't break the existing API and bring it in line with existing VirtualMachine behavior. It would also complete CRUD functionality for PVE containers.

Originally created by @xortim on GitHub (Feb 24, 2024). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/118 This looks like a really promising library, thank you for sharing it. Looking over the PVE API and the functionality implemented in the library. I was thinking the following enhancements would be helpful: * Implement `node.NewContainer()` * `POST` to [`/nodes/{node}/lxc`](https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/lxc) * Add ContainerConfig struct * Add ContainerConfig field to Container struct * Update `node.Container()` to include `container.Config` This shouldn't break the existing API and bring it in line with existing VirtualMachine behavior. It would also complete CRUD functionality for PVE containers.
kerem closed this issue 2026-03-03 15:29:40 +03:00
Author
Owner

@luthermonson commented on GitHub (Feb 24, 2024):

I spent most of my time in the qemu endpoints that I barely touched the lxc stuff, I did abstract "qemu" to "VirtualMachine" and i dont see why "lxc" shouldn't be "Container" so let's go for it!

<!-- gh-comment-id:1962748258 --> @luthermonson commented on GitHub (Feb 24, 2024): I spent most of my time in the qemu endpoints that I barely touched the lxc stuff, I did abstract "qemu" to "VirtualMachine" and i dont see why "lxc" shouldn't be "Container" so let's go for it!
Author
Owner

@xortim commented on GitHub (Feb 25, 2024):

I'm (slowly) working on a PR for this. It might take a while as I'm a bit rusty with Go.

<!-- gh-comment-id:1962973835 --> @xortim commented on GitHub (Feb 25, 2024): I'm (slowly) working on a PR for this. It might take a while as I'm a bit rusty with Go.
Author
Owner

@luthermonson commented on GitHub (Feb 25, 2024):

i tried to abstract the complexities so most get/put/post/delete aren't much more than a couple lines. you'll do fine and we can fix anything after you put up a PR

<!-- gh-comment-id:1963036698 --> @luthermonson commented on GitHub (Feb 25, 2024): i tried to abstract the complexities so most get/put/post/delete aren't much more than a couple lines. you'll do fine and we can fix anything after you put up a PR
Author
Owner

@luthermonson commented on GitHub (Mar 7, 2024):

@xortim i think someone beat you to it #126, closing this for now but feel free to open new ones if anything was missed

<!-- gh-comment-id:1983843642 --> @luthermonson commented on GitHub (Mar 7, 2024): @xortim i think someone beat you to it #126, closing this for now but feel free to open new ones if anything was missed
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#22
No description provided.