added conf/ and configuration logic

This commit is contained in:
pb
2024-07-03 10:22:22 +02:00
parent dd6f112954
commit f9e5c591bd
6 changed files with 15 additions and 92 deletions

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"maps"
"net/url"
"os"
"cloud.o-forge.io/core/oc-catalog/models"
@@ -24,7 +23,7 @@ type Graph struct {
ws HttpQuery
}
// Create a dictionnaries with each each existing workflow from a workspace, associated to the JSON representation of its content
// Create a dictionnaries with each existing workflow from a workspace, associated to the JSON representation of its content
func (g *Graph) GetGraphList(apiurl string) (map[string]string, error) {
g.ws.Init(apiurl)
body, err := g.ws.Get("v1/workspace/list")
@@ -48,8 +47,9 @@ func (g *Graph) LoadFrom(workspace string) error {
if err != nil {
return err
}
_ = decodedValue
os.WriteFile("graph.xml", []byte(decodedValue), 0660)
// os.WriteFile("graph.xml", []byte(decodedValue), 0660)
g.GetWorkflowComponents(workspace)
g.GetLinks(workspace)