commit f07f378aa15447143fa1268a8b779d1ece02b8a4 Author: ycc Date: Thu Jul 4 16:08:59 2024 +0200 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad98586 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# oc-lib + diff --git a/calendar.go b/calendar.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/calendar.go @@ -0,0 +1 @@ +package oclib diff --git a/data.go b/data.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/data.go @@ -0,0 +1 @@ +package oclib diff --git a/datacenter.go b/datacenter.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/datacenter.go @@ -0,0 +1 @@ +package oclib diff --git a/datacenter_workflows.go b/datacenter_workflows.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/datacenter_workflows.go @@ -0,0 +1 @@ +package oclib diff --git a/doc/model.puml b/doc/model.puml new file mode 100644 index 0000000..6bdcb20 --- /dev/null +++ b/doc/model.puml @@ -0,0 +1,106 @@ +@startuml oclib + + +abstract Ressource { + +id: int +} + +class Data { + +id: int + +name: string +} + +class Processing { + +id: int + +name: string + +container: string + +command: int + +environment: int + +} + +class Storage { + +id: int + +name: string + +url: string + +capacity: int +} + +class Datacenter { + +id: int + +name: string + +} + +class Workflow { + +id: int + +name: string +} + +class ResourceSet { + +id: int + +name: string + +ressources: Ressource[] +} + +class WorkflowSchedule { + +id: int + +start: date + +end: date + +cron : string +} + +class Graph { + +id: int + Ressource[] ressources + Link[] links +} + +class Link { + +id: int + +source: Ressource + +target: Ressource +} + +class Calendar { + +id: int + +name: string + +workflows: Workflow[] + +owner: string +} + +class UserWorkflows { + +id: int + +user: string + +workflows: Workflow[] +} + +class DatacenterWorkflows { + +id: int + +datacenter: Datacenter + +workflows: Workflow[] +} + +UserWorkflows "1" o-- "0..*" Workflow + +DatacenterWorkflows "1" o-- "0..*" Workflow + +Ressource <|-- Data +Ressource <|-- Processing +Ressource <|-- Storage +Ressource <|-- Datacenter +Ressource <|-- Workflow + +ResourceSet "1" o-- "0..*" Ressource + +Workflow "1" o-- "0..*" ResourceSet +Workflow "1" o-- "0..*" WorkflowSchedule +Workflow "1" o-- "0..*" Graph + +Graph "1" o-- "0..*" Ressource +Graph "1" o-- "0..*" Link + + +Calendar "1" o-- "0..*" Workflow + +@enduml \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b12a132 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module oc-lib + +go 1.22.0 diff --git a/graph.go b/graph.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/graph.go @@ -0,0 +1 @@ +package oclib diff --git a/resource.go b/resource.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/resource.go @@ -0,0 +1 @@ +package oclib diff --git a/resource_set.go b/resource_set.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/resource_set.go @@ -0,0 +1 @@ +package oclib diff --git a/storage.go b/storage.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/storage.go @@ -0,0 +1 @@ +package oclib diff --git a/user_workflows.go b/user_workflows.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/user_workflows.go @@ -0,0 +1 @@ +package oclib diff --git a/workflow_schedule.go b/workflow_schedule.go new file mode 100644 index 0000000..692632c --- /dev/null +++ b/workflow_schedule.go @@ -0,0 +1 @@ +package oclib