adding inputs output struct based on argo naming for now
This commit is contained in:
16
models/common/models/inoutputs.go
Normal file
16
models/common/models/inoutputs.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
type Artifact struct {
|
||||
Name string `json:"name" bson:"name" validate:"required"`
|
||||
Path string `json:"value,omitempty" bson:"value,omitempty"`
|
||||
From string `json:"from,omitempty" bson:"from,omitempty"`
|
||||
}
|
||||
|
||||
type Param struct {
|
||||
Name string `json:"name" bson:"name" validate:"required"`
|
||||
Value string `json:"value,omitempty" bson:"value,omitempty"`
|
||||
}
|
||||
type InOutputs struct {
|
||||
Params []Param `json:"parameters" bson:"parameters"`
|
||||
Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
|
||||
}
|
Reference in New Issue
Block a user