copy resource in workflow
This commit is contained in:
@@ -91,20 +91,7 @@ func (dma *AbstractAccessor) GenericUpdateOne(set DBObject, id string, accessor
|
||||
return accessor.LoadOne(id)
|
||||
}
|
||||
|
||||
type AbstractResource struct {
|
||||
AbstractObject
|
||||
ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty" validate:"required"`
|
||||
Description string `json:"description,omitempty" bson:"description,omitempty"`
|
||||
Logo string `json:"logo,omitempty" bson:"logo,omitempty" validate:"required"`
|
||||
Owner string `json:"owner,omitempty" bson:"owner,omitempty" validate:"required"`
|
||||
OwnerLogo string `json:"owner_logo,omitempty" bson:"owner_logo,omitempty"`
|
||||
SourceUrl string `json:"source_url,omitempty" bson:"source_url,omitempty" validate:"required"`
|
||||
Price string `json:"price,omitempty" bson:"price,omitempty"`
|
||||
License string `json:"license,omitempty" bson:"license,omitempty"`
|
||||
Inputs []interface{} `json:"inputs,omitempty" bson:"inputs,omitempty"`
|
||||
Outputs []interface{} `json:"outputs,omitempty" bson:"outputs,omitempty"`
|
||||
Proxy *ResourceProxy `json:"proxy,omitempty" bson:"proxy,omitempty"`
|
||||
}
|
||||
/*
|
||||
type ResourceProxy struct {
|
||||
Host string `json:"host,omitempty" bson:"host,omitempty"`
|
||||
Port int `json:"port,omitempty" bson:"port,omitempty"`
|
||||
@@ -112,3 +99,4 @@ type ResourceProxy struct {
|
||||
Args []string `json:"args,omitempty" bson:"args,omitempty"`
|
||||
EnvArgs map[string]interface{} `json:"env_args,omitempty" bson:"env_args,omitempty"`
|
||||
}
|
||||
*/
|
||||
|
@@ -12,6 +12,7 @@ const (
|
||||
WORKFLOW
|
||||
WORKFLOW_EXECUTION
|
||||
WORKSPACE
|
||||
RESOURCE_MODEL
|
||||
)
|
||||
|
||||
var Str = [...]string{
|
||||
@@ -24,6 +25,7 @@ var Str = [...]string{
|
||||
"workflow",
|
||||
"workflow_execution",
|
||||
"workspace",
|
||||
"resource_model",
|
||||
}
|
||||
|
||||
func FromInt(i int) string {
|
||||
|
Reference in New Issue
Block a user