adding inputs output struct based on argo naming for now

This commit is contained in:
mr 2025-01-27 14:15:12 +01:00
parent 6c4fab1adc
commit 7ca360be6a

View File

@ -7,11 +7,6 @@ import (
"cloud.o-forge.io/core/oc-lib/tools"
)
type WebResource struct {
Protocol string `bson:"protocol,omitempty" json:"protocol,omitempty"` // Protocol is the protocol of the URL
Path string `bson:"path,omitempty" json:"path,omitempty"` // Path is the path of the URL
}
type Model struct {
Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the model
ReadOnly bool `json:"readonly,omitempty" bson:"readonly,omitempty"` // ReadOnly is the readonly of the model
@ -25,8 +20,9 @@ type Model struct {
type ResourceModel struct {
utils.AbstractObject
ResourceType string `json:"resource_type,omitempty" bson:"resource_type,omitempty" validate:"required"`
VarRefs map[string]string `json:"var_refs,omitempty" bson:"var_refs,omitempty"` // VarRefs is the variable references of the model
Model map[string]map[string]Model `json:"model,omitempty" bson:"model,omitempty"`
Inputs []string `json:"inputs,omitempty" bson:"inputs,omitempty"`
Outputs []string `json:"outputs,omitempty" bson:"outputs,omitempty"`
}
func (d *ResourceModel) StoreDraftDefault() {