From 512419a1430f734c3ddc3917c74d7ca7143c2b94 Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Wed, 8 May 2024 14:09:30 -0700 Subject: [PATCH] wip --- cmd/commander/main.go | 4 ++-- lib/commander/{inmemory.go => lcmem.go} | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) rename lib/commander/{inmemory.go => lcmem.go} (96%) diff --git a/cmd/commander/main.go b/cmd/commander/main.go index 96e4f54..09cdab0 100644 --- a/cmd/commander/main.go +++ b/cmd/commander/main.go @@ -9,7 +9,7 @@ import ( "net/http" "strconv" - cim "github.com/advanced-security/mrvacommander/lib/commander/inmemory" + "github.com/advanced-security/mrvacommander/lib/commander/lcmem" "github.com/gorilla/mux" "github.com/hohn/ghes-mirva-server/analyze" co "github.com/hohn/ghes-mirva-server/common" @@ -105,7 +105,7 @@ func MirvaStatus(w http.ResponseWriter, r *http.Request) { ji := store.GetJobInfo(js) analyze.StatusResponse(w, js, ji, id) - cim.StatusResponse(w, js, ji, id) + lcmem.StatusResponse(w, js, ji, id) } // Download artifacts diff --git a/lib/commander/inmemory.go b/lib/commander/lcmem.go similarity index 96% rename from lib/commander/inmemory.go rename to lib/commander/lcmem.go index 2ad1225..1197615 100644 --- a/lib/commander/inmemory.go +++ b/lib/commander/lcmem.go @@ -1,4 +1,5 @@ -package analyze +// The in-memory implementation of the mrva commander library +package lcmem import ( "encoding/json"