diagrams documentation
This commit is contained in:
32
docs/uml/class_new_graph.puml
Normal file
32
docs/uml/class_new_graph.puml
Normal file
@@ -0,0 +1,32 @@
|
||||
@startuml
|
||||
package "main" {
|
||||
class Graph {
|
||||
[]DataModel Datas
|
||||
[]ComputingModel Computings
|
||||
[]DatacenterModel Datacenters
|
||||
[]StorageModel Storages
|
||||
map[string, Link] Links
|
||||
HttpQuery ws
|
||||
|
||||
GetGraphList(apiurl string) (map[string]string, error)
|
||||
LoadFrom(workspace string) error
|
||||
GetWorkflowComponents(workflow string)
|
||||
GetLinks(workflow string)
|
||||
AddDataModel(id string, user_input gjson.Result, wf_id string) error
|
||||
AddDatacenterModel(id string, user_input gjson.Result, wf_id string) error
|
||||
AddComputingModel(id string, user_input gjson.Result, wf_id string) error
|
||||
AddStorageModel(id string, user_input gjson.Result, wf_id string) error
|
||||
ExportToArgo(id string) error
|
||||
getListBranches(end_links map[string]Link, unvisited_links_list map[string]Link, current_branch []string) (list_branches [][]string)
|
||||
ExportToHelm(id string) error
|
||||
isDestination(comp_id string, link_id string) bool
|
||||
isSource(comp_id string, link_id string) bool
|
||||
getPreviousLink(link_id string, map_link map[string]Link) (previous_id []string)
|
||||
getComponentName(id string) string
|
||||
getComponentType(component_id string) string
|
||||
getComponentByType(compType string, link Link) (ids []string)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
32
docs/uml/class_old_graph.puml
Normal file
32
docs/uml/class_old_graph.puml
Normal file
@@ -0,0 +1,32 @@
|
||||
@startuml
|
||||
package "main" {
|
||||
class Graph {
|
||||
[]Link Links
|
||||
[]DataModel Datas
|
||||
[]ComputingModel Computings
|
||||
[]DatacenterModel Datacenters
|
||||
[]StorageModel Storages
|
||||
HttpQuery ws
|
||||
|
||||
GetGraphList(apiurl string) (map[string]string, error)
|
||||
LoadFrom(workspace string) error
|
||||
AddDataModel(id string) error
|
||||
AddDatacenterModel(id string) error
|
||||
AddComputingModel(id string) error
|
||||
AddStorageModel(id string) error
|
||||
ExportToArgo(id string) error
|
||||
ExportToHelm(id string) error
|
||||
}
|
||||
|
||||
class Link {
|
||||
string Src
|
||||
string Dst
|
||||
}
|
||||
|
||||
class HttpQuery {
|
||||
Init(apiurl string)
|
||||
Get(endpoint string) ([]byte, error)
|
||||
}
|
||||
}
|
||||
|
||||
@enduml
|
||||
74
docs/uml/diag_class_argo_workflow.puml
Normal file
74
docs/uml/diag_class_argo_workflow.puml
Normal file
@@ -0,0 +1,74 @@
|
||||
@startuml
|
||||
|
||||
class Parameter {
|
||||
- Name: string
|
||||
- Value: string
|
||||
}
|
||||
|
||||
class Container {
|
||||
- Image: string
|
||||
- Command: string[]
|
||||
- Args: string[]
|
||||
}
|
||||
|
||||
class VolumeMount {
|
||||
- Name: string
|
||||
- MountPath: string
|
||||
}
|
||||
|
||||
class Task {
|
||||
- Name: string
|
||||
- Template: string
|
||||
- Dependencies: string[]
|
||||
}
|
||||
|
||||
class Dag {
|
||||
- Tasks: Task[]
|
||||
}
|
||||
|
||||
class Template {
|
||||
- Name: string
|
||||
- Inputs: struct
|
||||
}
|
||||
|
||||
class VolumeClaimTemplate {
|
||||
- Metadata: struct
|
||||
- Spec: VolumeSpec
|
||||
}
|
||||
|
||||
class VolumeSpec {
|
||||
- AccessModes: string[]
|
||||
- Resources: struct
|
||||
}
|
||||
|
||||
class ArgoBuilder {
|
||||
- graph: Graph
|
||||
- branches: string[][]
|
||||
- Workflow: Workflow
|
||||
}
|
||||
|
||||
class Workflow {
|
||||
- ApiVersion: string
|
||||
- Kind: string
|
||||
- Metadata: struct
|
||||
}
|
||||
|
||||
class Spec {
|
||||
- Entrypoint: string
|
||||
- Arguments: Parameter[]
|
||||
- Volumes: VolumeClaimTemplate[]
|
||||
- Templates: Template[]
|
||||
}
|
||||
|
||||
Parameter -- Task
|
||||
Container -- Template
|
||||
VolumeMount -- Container
|
||||
Task -- Dag
|
||||
Dag -- Template
|
||||
Template -- Spec
|
||||
VolumeClaimTemplate -- Spec
|
||||
VolumeSpec -- VolumeClaimTemplate
|
||||
Workflow -- ArgoBuilder
|
||||
Spec -- Workflow
|
||||
|
||||
@enduml
|
||||
Reference in New Issue
Block a user