adding inputs output struct based on argo naming for now
This commit is contained in:
parent
6c4fab1adc
commit
7ca360be6a
@ -7,11 +7,6 @@ import (
|
|||||||
"cloud.o-forge.io/core/oc-lib/tools"
|
"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 Model struct {
|
||||||
Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the model
|
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
|
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 {
|
type ResourceModel struct {
|
||||||
utils.AbstractObject
|
utils.AbstractObject
|
||||||
ResourceType string `json:"resource_type,omitempty" bson:"resource_type,omitempty" validate:"required"`
|
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"`
|
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() {
|
func (d *ResourceModel) StoreDraftDefault() {
|
||||||
|
Loading…
Reference in New Issue
Block a user