diff --git a/models/workflow/graph/link.go b/models/workflow/graph/link.go index e23a7c2..030779c 100644 --- a/models/workflow/graph/link.go +++ b/models/workflow/graph/link.go @@ -11,10 +11,10 @@ type StorageProcessingGraphLink struct { // 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 + 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 + StorageLinkInfos []StorageProcessingGraphLink `bson:"storage_link_infos,omitempty" json:"storage_link_infos,omitempty"` // StorageLinkInfo is the storage link info } // tool function to check if a link is a link between a compute and a resource