This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Perform snapshot of domain console | |
func DomainVNCSnapshot(w http.ResponseWriter, r *http.Request) { | |
ruuid := chi.URLParam(r, "uuid") | |
errstr := "Failure retrieving VM details" | |
domobj, err := GetDomObj(ruuid) | |
if err != nil { | |
http.Error(w, errstr, http.StatusInternalServerError) | |
return | |
} | |
defer domobj.Free() |