This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
execution_target_provider.go
59 lines (45 loc) · 2.16 KB
/
execution_target_provider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
executioncluster "github.com/flyteorg/flyteadmin/pkg/executioncluster"
interfaces "github.com/flyteorg/flyteadmin/pkg/runtime/interfaces"
mock "github.com/stretchr/testify/mock"
prometheus "github.com/prometheus/client_golang/prometheus"
)
// ExecutionTargetProvider is an autogenerated mock type for the ExecutionTargetProvider type
type ExecutionTargetProvider struct {
mock.Mock
}
type ExecutionTargetProvider_GetExecutionTarget struct {
*mock.Call
}
func (_m ExecutionTargetProvider_GetExecutionTarget) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ExecutionTargetProvider_GetExecutionTarget {
return &ExecutionTargetProvider_GetExecutionTarget{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *ExecutionTargetProvider) OnGetExecutionTarget(initializationErrorCounter prometheus.Counter, k8sCluster interfaces.ClusterConfig) *ExecutionTargetProvider_GetExecutionTarget {
c := _m.On("GetExecutionTarget", initializationErrorCounter, k8sCluster)
return &ExecutionTargetProvider_GetExecutionTarget{Call: c}
}
func (_m *ExecutionTargetProvider) OnGetExecutionTargetMatch(matchers ...interface{}) *ExecutionTargetProvider_GetExecutionTarget {
c := _m.On("GetExecutionTarget", matchers...)
return &ExecutionTargetProvider_GetExecutionTarget{Call: c}
}
// GetExecutionTarget provides a mock function with given fields: initializationErrorCounter, k8sCluster
func (_m *ExecutionTargetProvider) GetExecutionTarget(initializationErrorCounter prometheus.Counter, k8sCluster interfaces.ClusterConfig) (*executioncluster.ExecutionTarget, error) {
ret := _m.Called(initializationErrorCounter, k8sCluster)
var r0 *executioncluster.ExecutionTarget
if rf, ok := ret.Get(0).(func(prometheus.Counter, interfaces.ClusterConfig) *executioncluster.ExecutionTarget); ok {
r0 = rf(initializationErrorCounter, k8sCluster)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*executioncluster.ExecutionTarget)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(prometheus.Counter, interfaces.ClusterConfig) error); ok {
r1 = rf(initializationErrorCounter, k8sCluster)
} else {
r1 = ret.Error(1)
}
return r0, r1
}