copy resource in workflow
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
type ResourceSet struct {
|
||||
Datas []string `bson:"datas,omitempty" json:"datas,omitempty"`
|
||||
Storages []string `bson:"storages,omitempty" json:"storages,omitempty"`
|
||||
Processings []string `bson:"processing,omitempty" json:"processing,omitempty"`
|
||||
Processings []string `bson:"processings,omitempty" json:"processings,omitempty"`
|
||||
Datacenters []string `bson:"datacenters,omitempty" json:"datacenters,omitempty"`
|
||||
Workflows []string `bson:"workflows,omitempty" json:"workflows,omitempty"`
|
||||
|
||||
@@ -26,3 +26,11 @@ type ResourceSet struct {
|
||||
DatacenterResources []*datacenter.DatacenterResource `bson:"-" json:"datacenter_resources,omitempty"`
|
||||
WorkflowResources []*w.WorkflowResource `bson:"-" json:"workflow_resources,omitempty"`
|
||||
}
|
||||
|
||||
type ItemResource struct {
|
||||
Data data.DataResource `bson:"data,omitempty" json:"data,omitempty"`
|
||||
Processing processing.ProcessingResource `bson:"processing,omitempty" json:"processing,omitempty"`
|
||||
Storage storage.StorageResource `bson:"storage,omitempty" json:"storage,omitempty"`
|
||||
Datacenter datacenter.DatacenterResource `bson:"datacenter,omitempty" json:"datacenter,omitempty"`
|
||||
Workflow w.WorkflowResource `bson:"workflow,omitempty" json:"workflow,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user