added comments
This commit is contained in:
parent
be2a1cc114
commit
3ddbf1a967
@ -227,6 +227,10 @@ func (wf *Workflow) Planify(start time.Time, end *time.Time, request *tools.APIR
|
|||||||
return longest, priceds, wf, nil
|
return longest, priceds, wf, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Returns a map of DataType (processing,computing,data,storage,worfklow) where each resource (identified by its UUID)
|
||||||
|
// is mapped to the list of its items (different appearance) in the graph
|
||||||
|
// ex: if the same Minio storage is represented by several nodes in the graph, in [tools.STORAGE_RESSOURCE] its UUID will be mapped to
|
||||||
|
// the list of GraphItem ID that correspond to the ID of each node
|
||||||
func (w *Workflow) GetItemsByResources() (map[tools.DataType]map[string][]string) {
|
func (w *Workflow) GetItemsByResources() (map[tools.DataType]map[string][]string) {
|
||||||
res := make(map[tools.DataType]map[string][]string)
|
res := make(map[tools.DataType]map[string][]string)
|
||||||
dtMethodMap := map[tools.DataType]func() []graph.GraphItem{
|
dtMethodMap := map[tools.DataType]func() []graph.GraphItem{
|
||||||
|
Loading…
Reference in New Issue
Block a user