last demo import - cleaned

This commit is contained in:
ycc
2023-08-26 22:04:56 +02:00
parent 0ab5dd5e38
commit f3c3c67e2c
884 changed files with 301494 additions and 1 deletions

7
models/access.go Normal file
View File

@@ -0,0 +1,7 @@
package models
type Access struct {
Name string `json:"name"`
Feature string `json:"feature"`
Rights string `json:"rights"`
}

7
models/coordinates.go Normal file
View File

@@ -0,0 +1,7 @@
package models
// Coordinates represents WGS84 geographical coordiantes
type Coordinates struct {
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
}

23
models/data.go Normal file
View File

@@ -0,0 +1,23 @@
package models
type Data struct {
Name string `json:"name"`
Type string `json:"type"`
Logo string `json:"logo"`
ShortDescription string `json:"short_description"`
Description string `json:"description"`
Tags []string `json:"tags"`
Image string `json:"image"`
Id string `json:"id"`
SourceId string `json:"source_id"`
SourceProvider string `json:"source_provider"`
SourceUrl string `json:"source_url"`
Format string `json:"format"`
Size int `json:"size"`
License string `json:"license"`
DataUrl string `json:"url"`
Price string `json:"price"`
CreationDate string `json:"creation_date"`
ModificationDate string `json:"modification_date"`
Position Coordinates `json:"position"`
}

15
models/graph.go Normal file
View File

@@ -0,0 +1,15 @@
package models
type GraphElement struct {
Id int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
}
type GraphLink struct {
Id int `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Source int `json:"source"`
Destination int `json:"destination"`
}

22
models/processing.go Normal file
View File

@@ -0,0 +1,22 @@
package models
type Processing struct {
Name string `json:"name"`
Type string `json:"type"`
Logo string `json:"logo"`
ShortDescription string `json:"short_description"`
Description string `json:"description"`
Tags []string `json:"tags"`
Image string `json:"image"`
Id string `json:"id"`
SourceId string `json:"source_id"`
SourceProvider string `json:"source_provider"`
SourceUrl string `json:"source_url"`
Format string `json:"format"`
Size int `json:"size"`
License string `json:"license"`
DataUrl string `json:"url"`
Price string `json:"price"`
CreationDate string `json:"creation_date"`
ModificationDate string `json:"modification_date"`
}

12
models/profile.go Normal file
View File

@@ -0,0 +1,12 @@
package models
type Profile struct {
Name string `json:"name"`
Type string `json:"type"`
Logo string `json:"logo"`
ShortDescription string `json:"short_description"`
Description string `json:"description"`
Tags []string `json:"tags"`
Image string `json:"image"`
Id string `json:"id"`
}

12
models/resource.go Normal file
View File

@@ -0,0 +1,12 @@
package models
type Resource struct {
Name string `json:"name"`
Type string `json:"type"`
Logo string `json:"logo"`
ShortDescription string `json:"short_description"`
Description string `json:"description"`
Tags []string `json:"tags"`
Image string `json:"image"`
Id string `json:"id"`
}

9
models/user.go Normal file
View File

@@ -0,0 +1,9 @@
package models
type User struct {
Name string `json:"name"`
Email string `json:"email"`
Profile string `json:"profiles"`
Image string `json:"image"`
Id string `json:"id"`
}

View File

@@ -0,0 +1,11 @@
package models
import "time"
// ExecutionSchedule an execution unit or a set of steps
type ExecutionSchedule struct {
Name string `json:"name"`
Start time.Time `json:"start"`
Stop time.Time `json:"stop"`
Reccurence string `json:"reccurence"`
}

View File

@@ -0,0 +1,8 @@
package models
// Coordinates represents WGS84 geographical coordiantes
type Workflow struct {
Name string `json:"name"`
PlannedSchedule ExecutionSchedule `json:"plannedschedule`
Steps []WorkflowStep `json:"steps"`
}

View File

@@ -0,0 +1,10 @@
package models
// WorkflowStep an execution unit or a set of steps
type WorkflowStep struct {
Name string `json:"name"`
Container string `json:"container"`
Input string `json:"input"`
Output string `json:"output"`
Location string `json:"location"`
}