last demo import - cleaned
This commit is contained in:
		
							
								
								
									
										7
									
								
								models/access.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								models/access.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										7
									
								
								models/coordinates.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										23
									
								
								models/data.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										15
									
								
								models/graph.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										22
									
								
								models/processing.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										12
									
								
								models/profile.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										12
									
								
								models/resource.go
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										9
									
								
								models/user.go
									
									
									
									
									
										Normal 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"` | ||||
| } | ||||
							
								
								
									
										11
									
								
								models/workflow/executionschedule.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								models/workflow/executionschedule.go
									
									
									
									
									
										Normal 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"` | ||||
| } | ||||
							
								
								
									
										8
									
								
								models/workflow/workflow.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								models/workflow/workflow.go
									
									
									
									
									
										Normal 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"` | ||||
| } | ||||
							
								
								
									
										10
									
								
								models/workflow/workflowstep.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								models/workflow/workflowstep.go
									
									
									
									
									
										Normal 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"` | ||||
| } | ||||
		Reference in New Issue
	
	Block a user