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-27 14:00:20 +01:00
|
|
|
Attr string `json:"attr" bson:"attr" validate:"required"`
|
2025-01-27 14:42:57 +01:00
|
|
|
Value string `json:"value,omitempty" bson:"value,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
|
|
|
}
|
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"`
|
|
|
|
|
}
|