First batch

This commit is contained in:
pb
2024-07-16 10:56:36 +02:00
parent 5ba33d3131
commit 034a81cedb
19 changed files with 540 additions and 30 deletions

25
workflow.go Normal file
View File

@@ -0,0 +1,25 @@
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
}