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
/
cluster_configuration.go
81 lines (64 loc) · 2.53 KB
/
cluster_configuration.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
interfaces "github.com/flyteorg/flyteadmin/pkg/runtime/interfaces"
mock "github.com/stretchr/testify/mock"
)
// ClusterConfiguration is an autogenerated mock type for the ClusterConfiguration type
type ClusterConfiguration struct {
mock.Mock
}
type ClusterConfiguration_GetClusterConfigs struct {
*mock.Call
}
func (_m ClusterConfiguration_GetClusterConfigs) Return(_a0 []interfaces.ClusterConfig) *ClusterConfiguration_GetClusterConfigs {
return &ClusterConfiguration_GetClusterConfigs{Call: _m.Call.Return(_a0)}
}
func (_m *ClusterConfiguration) OnGetClusterConfigs() *ClusterConfiguration_GetClusterConfigs {
c_call := _m.On("GetClusterConfigs")
return &ClusterConfiguration_GetClusterConfigs{Call: c_call}
}
func (_m *ClusterConfiguration) OnGetClusterConfigsMatch(matchers ...interface{}) *ClusterConfiguration_GetClusterConfigs {
c_call := _m.On("GetClusterConfigs", matchers...)
return &ClusterConfiguration_GetClusterConfigs{Call: c_call}
}
// GetClusterConfigs provides a mock function with given fields:
func (_m *ClusterConfiguration) GetClusterConfigs() []interfaces.ClusterConfig {
ret := _m.Called()
var r0 []interfaces.ClusterConfig
if rf, ok := ret.Get(0).(func() []interfaces.ClusterConfig); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]interfaces.ClusterConfig)
}
}
return r0
}
type ClusterConfiguration_GetLabelClusterMap struct {
*mock.Call
}
func (_m ClusterConfiguration_GetLabelClusterMap) Return(_a0 map[string][]interfaces.ClusterEntity) *ClusterConfiguration_GetLabelClusterMap {
return &ClusterConfiguration_GetLabelClusterMap{Call: _m.Call.Return(_a0)}
}
func (_m *ClusterConfiguration) OnGetLabelClusterMap() *ClusterConfiguration_GetLabelClusterMap {
c_call := _m.On("GetLabelClusterMap")
return &ClusterConfiguration_GetLabelClusterMap{Call: c_call}
}
func (_m *ClusterConfiguration) OnGetLabelClusterMapMatch(matchers ...interface{}) *ClusterConfiguration_GetLabelClusterMap {
c_call := _m.On("GetLabelClusterMap", matchers...)
return &ClusterConfiguration_GetLabelClusterMap{Call: c_call}
}
// GetLabelClusterMap provides a mock function with given fields:
func (_m *ClusterConfiguration) GetLabelClusterMap() map[string][]interfaces.ClusterEntity {
ret := _m.Called()
var r0 map[string][]interfaces.ClusterEntity
if rf, ok := ret.Get(0).(func() map[string][]interfaces.ClusterEntity); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string][]interfaces.ClusterEntity)
}
}
return r0
}