modelling
This commit is contained in:
@@ -3,7 +3,6 @@ package resources
|
||||
import (
|
||||
"time"
|
||||
|
||||
"cloud.o-forge.io/core/oc-lib/models/common/pricing"
|
||||
"cloud.o-forge.io/core/oc-lib/models/utils"
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
)
|
||||
@@ -36,8 +35,16 @@ func (d *WorkflowResource) GetAccessor(request *tools.APIRequest) utils.Accessor
|
||||
}
|
||||
|
||||
type WorkflowResourcePricingProfile struct {
|
||||
ID string `json:"id,omitempty" bson:"id,omitempty"`
|
||||
ExploitedResourceSet
|
||||
pricing.ExploitPricingProfile // ExploitPricingProfile is the pricing profile of a workflow it means that we exploit the resource for an amount of continuous time
|
||||
}
|
||||
|
||||
func (p *WorkflowResourcePricingProfile) GetOverrideStrategyValue() int {
|
||||
return -1
|
||||
}
|
||||
|
||||
func (p *WorkflowResourcePricingProfile) GetID() string {
|
||||
return p.ID
|
||||
}
|
||||
|
||||
func (p *WorkflowResourcePricingProfile) IsBuying() bool {
|
||||
|
||||
Reference in New Issue
Block a user