initial prototyping

This commit is contained in:
2025-02-11 07:11:05 +00:00
commit 19550a78d4
8 changed files with 193 additions and 0 deletions

18
app/proxmox.go Normal file
View File

@@ -0,0 +1,18 @@
package app
import (
"net/http"
"github.com/luthermonson/go-proxmox"
)
func NewClient(tokenID string, secret string) *proxmox.Client {
HTTPClient := http.Client{}
client := proxmox.NewClient("https://pve.tronnet.net/api2/json",
proxmox.WithHTTPClient(&HTTPClient),
proxmox.WithAPIToken(tokenID, secret),
)
return client
}