github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/avs/eval_assistant.go (about) 1 package avs 2 3 import ( 4 "time" 5 6 "github.com/kyma-project/kyma-environment-broker/internal" 7 ) 8 9 type EvalAssistant interface { 10 CreateBasicEvaluationRequest(operations internal.Operation, url string) (*BasicEvaluationCreateRequest, error) 11 IsAlreadyCreated(lifecycleData internal.AvsLifecycleData) bool 12 IsValid(lifecycleData internal.AvsLifecycleData) bool 13 IsInMaintenance(lifecycleData internal.AvsLifecycleData) bool 14 SetEvalId(lifecycleData *internal.AvsLifecycleData, evalId int64) 15 SetEvalStatus(lifecycleData *internal.AvsLifecycleData, status string) 16 GetEvalStatus(lifecycleData internal.AvsLifecycleData) string 17 GetOriginalEvalStatus(lifecycleData internal.AvsLifecycleData) string 18 IsAlreadyDeletedOrEmpty(lifecycleData internal.AvsLifecycleData) bool 19 GetEvaluationId(lifecycleData internal.AvsLifecycleData) int64 20 ProvideParentId(pp internal.ProvisioningParameters) int64 21 SetDeleted(lifecycleData *internal.AvsLifecycleData, deleted bool) 22 provideRetryConfig() *RetryConfig 23 } 24 25 type RetryConfig struct { 26 retryInterval time.Duration 27 maxTime time.Duration 28 }