update to support postgresql and add godocs
This commit is contained in:
@@ -9,7 +9,14 @@ import (
|
||||
"vctp/internal/vcenter"
|
||||
)
|
||||
|
||||
// VmUpdate receives the CloudEvent for a VM modification or move
|
||||
// VmUpdateDetails refreshes inventory metadata from vCenter.
|
||||
// @Summary Refresh VM details
|
||||
// @Description Queries vCenter and updates inventory records with missing details.
|
||||
// @Tags inventory
|
||||
// @Produce text/plain
|
||||
// @Success 200 {string} string "Update completed"
|
||||
// @Failure 500 {string} string "Server error"
|
||||
// @Router /api/inventory/vm/update [post]
|
||||
func (h *Handler) VmUpdateDetails(w http.ResponseWriter, r *http.Request) {
|
||||
var matchFound bool
|
||||
var inventoryId int64
|
||||
|
||||
Reference in New Issue
Block a user