added conf/ and configuration logic
This commit is contained in:
6
graph.go
6
graph.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user