mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #34] [MERGED] Feature/lxc #169
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/34
Author: @ghost
Created: 7/6/2019
Status: ✅ Merged
Merged: 7/26/2019
Merged by: @ggongaware
Base:
master← Head:feature/lxc📝 Commits (10+)
44badbccreate lxc container0b8f4baremove lxc.json examplef06c5cdreuse existing string concatenation functionscb9b492reuse failure handling5946614add parameters for /nodes/{n}/lxc5693415add all proxmox params for lxc4d92da8read lxc config from api0b99eceadd SetLxcConfig to update via PUT request5749306udpate lxc hostname with SetLxcConfigd81973afix cores and complete update function📊 Changes
4 files changed (+493 additions, -1 deletions)
View changed files
📝
main.go(+17 -1)📝
proxmox/client.go(+42 -0)➕
proxmox/config_lxc.go(+433 -0)📝
proxmox/config_qemu.go(+1 -0)📄 Description
This adds CRUD features for LXC containers.
NewConfigLxc()is used to provide the default set of parameters according to the Proxmox API docDeleteVmcan be reused. The same applies to starting/stopping the containers (StartVm/StopVm)vmTypes(lxcorqemu), because the Proxmox API comes with a different set of parameters for containers than for VMs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.