update to support postgresql and add godocs
This commit is contained in:
@@ -19,7 +19,17 @@ import (
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
// VmModifyEvent receives the CloudEvent for a VM modification or move
|
||||
// VmModifyEvent records a VM modification CloudEvent.
|
||||
// @Summary Record VM modify event
|
||||
// @Description Parses a VM modify CloudEvent and creates an update record when relevant changes are detected.
|
||||
// @Tags events
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param event body models.CloudEventReceived true "CloudEvent payload"
|
||||
// @Success 200 {object} map[string]string "Modify event processed"
|
||||
// @Success 202 {object} map[string]string "No relevant changes"
|
||||
// @Failure 500 {object} map[string]string "Server error"
|
||||
// @Router /api/event/vm/modify [post]
|
||||
func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
|
||||
var configChanges []map[string]string
|
||||
params := queries.CreateUpdateParams{}
|
||||
|
||||
Reference in New Issue
Block a user