Service + Storage Binded to Compute
This commit is contained in:
@@ -45,6 +45,10 @@ func (wf *Graph) IsProcessing(item GraphItem) bool {
|
||||
return item.Processing != nil
|
||||
}
|
||||
|
||||
func (wf *Graph) IsService(item GraphItem) bool {
|
||||
return item.Service != nil
|
||||
}
|
||||
|
||||
func (wf *Graph) IsNativeTool(item GraphItem) bool {
|
||||
return item.NativeTool != nil
|
||||
}
|
||||
@@ -151,6 +155,8 @@ func (g *Graph) GetResource(id string) (tools.DataType, resources.ResourceInterf
|
||||
return tools.PROCESSING_RESOURCE, item.Processing
|
||||
} else if item.Storage != nil {
|
||||
return tools.STORAGE_RESOURCE, item.Storage
|
||||
} else if item.Service != nil {
|
||||
return tools.SERVICE_RESOURCE, item.Service
|
||||
}
|
||||
}
|
||||
return tools.INVALID, nil
|
||||
|
||||
@@ -27,6 +27,8 @@ func (g *GraphItem) GetResource() (tools.DataType, resources.ResourceInterface)
|
||||
return tools.STORAGE_RESOURCE, g.Storage
|
||||
} else if g.NativeTool != nil {
|
||||
return tools.NATIVE_TOOL, g.NativeTool
|
||||
} else if g.Service != nil {
|
||||
return tools.SERVICE_RESOURCE, g.Service
|
||||
}
|
||||
return tools.INVALID, nil
|
||||
}
|
||||
@@ -37,4 +39,5 @@ func (g *GraphItem) Clear() {
|
||||
g.Workflow = nil
|
||||
g.Processing = nil
|
||||
g.Storage = nil
|
||||
g.Service = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user