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

@@ -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
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