adding inputs output struct based on argo naming for now
This commit is contained in:
parent
98dc733240
commit
8b03df7923
@ -8,14 +8,10 @@ type Artifact struct {
|
|||||||
|
|
||||||
type Param struct {
|
type Param struct {
|
||||||
Attr string `json:"attr" bson:"attr" validate:"required"`
|
Attr string `json:"attr" bson:"attr" validate:"required"`
|
||||||
|
Value string `json:"value,omitempty" bson:"value,omitempty"`
|
||||||
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
Readonly bool `json:"readonly" bson:"readonly" default:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ParamValue struct {
|
|
||||||
Param
|
|
||||||
Value string `json:"value" bson:"value" validate:"required"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type InOutputs struct {
|
type InOutputs struct {
|
||||||
Params []Param `json:"parameters" bson:"parameters"`
|
Params []Param `json:"parameters" bson:"parameters"`
|
||||||
Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
|
Artifacts []Artifact `json:"artifacts" bson:"artifacts"`
|
||||||
|
@ -144,7 +144,7 @@ type ResourceInstance[T ResourcePartnerITF] struct {
|
|||||||
Location GeoPoint `json:"location,omitempty" bson:"location,omitempty"`
|
Location GeoPoint `json:"location,omitempty" bson:"location,omitempty"`
|
||||||
Country countries.CountryCode `json:"country,omitempty" bson:"country,omitempty"`
|
Country countries.CountryCode `json:"country,omitempty" bson:"country,omitempty"`
|
||||||
AccessProtocol string `json:"access_protocol,omitempty" bson:"access_protocol,omitempty"`
|
AccessProtocol string `json:"access_protocol,omitempty" bson:"access_protocol,omitempty"`
|
||||||
Env map[string]models.ParamValue `json:"env,omitempty" bson:"env,omitempty"`
|
Env []models.Param `json:"env,omitempty" bson:"env,omitempty"`
|
||||||
Inputs []models.InOutputs `json:"inputs,omitempty" bson:"inputs,omitempty"`
|
Inputs []models.InOutputs `json:"inputs,omitempty" bson:"inputs,omitempty"`
|
||||||
Outputs []models.InOutputs `json:"outputs,omitempty" bson:"outputs,omitempty"`
|
Outputs []models.InOutputs `json:"outputs,omitempty" bson:"outputs,omitempty"`
|
||||||
Partnerships []T `json:"partnerships,omitempty" bson:"partnerships,omitempty"`
|
Partnerships []T `json:"partnerships,omitempty" bson:"partnerships,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user