github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/provisioning/internal_eval.go (about) 1 package provisioning 2 3 import ( 4 "time" 5 6 "github.com/kyma-project/kyma-environment-broker/internal/avs" 7 8 "github.com/kyma-project/kyma-environment-broker/internal" 9 "github.com/sirupsen/logrus" 10 ) 11 12 type InternalEvaluationStep struct { 13 delegator *avs.Delegator 14 iec *avs.InternalEvalAssistant 15 } 16 17 func NewInternalEvaluationStep(delegator *avs.Delegator, assistant *avs.InternalEvalAssistant) *InternalEvaluationStep { 18 return &InternalEvaluationStep{ 19 delegator: delegator, 20 iec: assistant, 21 } 22 } 23 24 func (ies *InternalEvaluationStep) Name() string { 25 return "AVS_Create_Internal_Eval_Step" 26 } 27 28 func (ies *InternalEvaluationStep) Run(operation internal.Operation, logger logrus.FieldLogger) (internal.Operation, time.Duration, error) { 29 return ies.delegator.CreateEvaluation(logger, operation, ies.iec, "") 30 }