Skip to content

Instantly share code, notes, and snippets.

View carlosmn's full-sized avatar
💭
Buried under a heap of yaks under a stack of todos

Carlos Martín Nieto carlosmn

💭
Buried under a heap of yaks under a stack of todos
View GitHub Profile
// 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()