2025-01-24 15:33:57 +01:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type Artifact struct {
|
2025-01-27 14:01:42 +01:00
|
|
|
AttrPath string `json:"attr_path,omitempty" bson:"attr_path,omitempty" validate:"required"`
|
|
|
|
|
AttrFrom string `json:"from_path,omitempty" bson:"from_path,omitempty"`
|
2025-01-27 14:41:03 +01:00
|
|
|
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
2025-01-24 15:33:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Param struct {
|
2025-01-29 11:01:35 +01:00
|
|
|
Name string `json:"name" bson:"name" validate:"required"`
|
|
|
|
|
Attr string `json:"attr,omitempty" bson:"attr,omitempty"`
|
2025-01-27 16:02:45 +01:00
|
|
|
Value string `json:"value,omitempty" bson:"value,omitempty"`
|
2025-01-29 08:37:43 +01:00
|
|
|
Origin string `json:"origin,omitempty" bson:"origin,omitempty"`
|
2025-01-27 16:02:45 +01:00
|
|
|
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
|
|
|
|
Optionnal bool `json:"optionnal" bson:"optionnal" default:"true"`
|
2025-01-24 15:33:57 +01:00
|
|
|
}
|
2025-01-27 14:41:03 +01:00
|
|
|
|
2025-01-24 15:33:57 +01:00
|
|
|
type InOutputs struct {
|
|
|
|
|
Params []Param `json:"parameters" bson:"parameters"`
|
|
|
|
|
Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
|
|
|
|
|
}
|