-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Timothy Rule (VM/EMT3) <Timothy.Rule@de.bosch.com>
- Loading branch information
1 parent
472b43a
commit f4180a2
Showing
9 changed files
with
748 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package ast | ||
|
||
import () | ||
|
||
const ( | ||
SimulationKindSimulation SimulationKind = "Simulation" | ||
) | ||
|
||
type Model struct { | ||
Arch *string `yaml:"arch,omitempty"` | ||
Channels []ModelChannel `yaml:"channels"` | ||
Env *[]Var `yaml:"env,omitempty"` | ||
Model string `yaml:"model"` | ||
Name string `yaml:"name"` | ||
Workflows *[]Workflow `yaml:"workflows,omitempty"` | ||
} | ||
type ModelChannel struct { | ||
Alias *string `yaml:"alias,omitempty"` | ||
Name string `yaml:"name"` | ||
} | ||
type Simulation struct { | ||
Kind SimulationKind `yaml:"kind"` | ||
Metadata *ObjectMetadata `yaml:"metadata,omitempty"` | ||
Spec SimulationSpec `yaml:"spec"` | ||
} | ||
type SimulationKind string | ||
type SimulationChannel struct { | ||
Name string `yaml:"name"` | ||
Networks *[]SimulationNetwork `yaml:"networks,omitempty"` | ||
} | ||
type SimulationNetwork struct { | ||
MimeType string `yaml:"mime_type"` | ||
Name string `yaml:"name"` | ||
} | ||
type SimulationSpec struct { | ||
Arch string `yaml:"arch"` | ||
Channels []SimulationChannel `yaml:"channels"` | ||
Stacks []Stack `yaml:"stacks"` | ||
Uses *[]Uses `yaml:"uses,omitempty"` | ||
Vars *[]Var `yaml:"vars,omitempty"` | ||
} | ||
type Stack struct { | ||
Arch *string `yaml:"arch,omitempty"` | ||
Env *[]Var `yaml:"env,omitempty"` | ||
Models []Model `yaml:"models"` | ||
Name string `yaml:"name"` | ||
Stacked *bool `yaml:"stacked,omitempty"` | ||
} | ||
type Uses struct { | ||
Name string `yaml:"name"` | ||
Path *string `yaml:"path,omitempty"` | ||
Url string `yaml:"url"` | ||
Version *string `yaml:"version,omitempty"` | ||
} | ||
type Var struct { | ||
Name string `yaml:"name"` | ||
Value string `yaml:"value"` | ||
} | ||
type Workflow struct { | ||
Name string `yaml:"name"` | ||
Uses *string `yaml:"uses,omitempty"` | ||
Vars *[]Var `yaml:"vars,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package ast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package: ast | ||
generate: | ||
models: true | ||
import-mapping: | ||
metadata.yaml: delete_this_line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ast | ||
|
||
type Annotations map[string]interface{} | ||
type Labels map[string]string | ||
type ObjectMetadata struct { | ||
Annotations *Annotations `yaml:"annotations,omitempty"` | ||
Labels *Labels `yaml:"labels,omitempty"` | ||
Name *string `yaml:"name,omitempty"` | ||
} |
Oops, something went wrong.