adding inputs output struct based on argo naming for now^C

This commit is contained in:
mr 2025-01-29 11:01:35 +01:00
parent 74a1f66d26
commit 330768490a
2 changed files with 12 additions and 4 deletions

View File

@ -7,7 +7,8 @@ type Artifact struct {
}
type Param struct {
Attr string `json:"attr" bson:"attr" validate:"required"`
Name string `json:"name" bson:"name" validate:"required"`
Attr string `json:"attr,omitempty" bson:"attr,omitempty"`
Value string `json:"value,omitempty" bson:"value,omitempty"`
Origin string `json:"origin,omitempty" bson:"origin,omitempty"`
Readonly bool `json:"readonly" bson:"readonly" default:"true"`

View File

@ -1,10 +1,17 @@
package graph
type StorageProcessingGraphLink struct {
Write bool `json:"write" bson:"write"`
Source string `json:"source" bson:"source"`
Destination string `json:"destination" bson:"destination"`
}
// GraphLink is a struct that represents a link between two items in a graph
type GraphLink struct {
Source Position `bson:"source" json:"source" validate:"required"` // Source is the source graphical position of the link
Destination Position `bson:"destination" json:"destination" validate:"required"` // Destination is the destination graphical position of the link
Style *GraphLinkStyle `bson:"style,omitempty" json:"style,omitempty"` // Style is the graphical style of the link
StorageLinkInfo *StorageProcessingGraphLink `bson:"storage_link_info,omitempty" json:"storage_link_info,omitempty"` // StorageLinkInfo is the storage link info
}
// tool function to check if a link is a link between a compute and a resource