forked from kyma-project/kyma
/
NameResolver.go
51 lines (40 loc) · 1.32 KB
/
NameResolver.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
// Code generated by mockery v1.0.0
package mocks
import mock "github.com/stretchr/testify/mock"
// NameResolver is an autogenerated mock type for the NameResolver type
type NameResolver struct {
mock.Mock
}
// ExtractServiceId provides a mock function with given fields: remoteEnvironment, host
func (_m *NameResolver) ExtractServiceId(remoteEnvironment string, host string) string {
ret := _m.Called(remoteEnvironment, host)
var r0 string
if rf, ok := ret.Get(0).(func(string, string) string); ok {
r0 = rf(remoteEnvironment, host)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetMetadataUrl provides a mock function with given fields: remoteEnvironment, id
func (_m *NameResolver) GetMetadataUrl(remoteEnvironment string, id string) string {
ret := _m.Called(remoteEnvironment, id)
var r0 string
if rf, ok := ret.Get(0).(func(string, string) string); ok {
r0 = rf(remoteEnvironment, id)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetResourceName provides a mock function with given fields: remoteEnvironment, id
func (_m *NameResolver) GetResourceName(remoteEnvironment string, id string) string {
ret := _m.Called(remoteEnvironment, id)
var r0 string
if rf, ok := ret.Get(0).(func(string, string) string); ok {
r0 = rf(remoteEnvironment, id)
} else {
r0 = ret.Get(0).(string)
}
return r0
}