oc-lib/workflow.go

26 lines
460 B
Go
Raw Normal View History

2024-07-16 10:56:36 +02:00
package oclib
type Workflow struct{
Resource
Datas map[string]Data
Storages map[string]Storage
Processing map[string]Processing
Datacenters map[string]Datacenter
Links map[string]Link
Schedule WorkflowSchedule
}
func (w *Workflow) isDCLink(link Link) bool {
if _, exists := w.Datacenters[link.Destination]; exists {
return true
} else if _, exists := w.Datacenters[link.Source]; exists {
return true
}
return false
}