ProxmoxAAS-Fabric/app/proxmox.go

19 lines
337 B
Go
Raw Normal View History

2024-10-18 04:28:31 +00:00
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
}