initial prototyping
This commit is contained in:
18
app/proxmox.go
Normal file
18
app/proxmox.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user