/
api.go
119 lines (93 loc) · 2.08 KB
/
api.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Code generated by mockery v2.9.4. DO NOT EDIT.
package mocks
import (
clouddns "go.anx.io/go-anxcloud/pkg/clouddns"
ipam "go.anx.io/go-anxcloud/pkg/ipam"
lbaas "go.anx.io/go-anxcloud/pkg/lbaas"
mock "github.com/stretchr/testify/mock"
test "go.anx.io/go-anxcloud/pkg/test"
vlan "go.anx.io/go-anxcloud/pkg/vlan"
vsphere "go.anx.io/go-anxcloud/pkg/vsphere"
)
// API is an autogenerated mock type for the API type
type API struct {
mock.Mock
}
// CloudDNS provides a mock function with given fields:
func (_m *API) CloudDNS() clouddns.API {
ret := _m.Called()
var r0 clouddns.API
if rf, ok := ret.Get(0).(func() clouddns.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(clouddns.API)
}
}
return r0
}
// IPAM provides a mock function with given fields:
func (_m *API) IPAM() ipam.API {
ret := _m.Called()
var r0 ipam.API
if rf, ok := ret.Get(0).(func() ipam.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ipam.API)
}
}
return r0
}
// LBaaS provides a mock function with given fields:
func (_m *API) LBaaS() lbaas.API {
ret := _m.Called()
var r0 lbaas.API
if rf, ok := ret.Get(0).(func() lbaas.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(lbaas.API)
}
}
return r0
}
// Test provides a mock function with given fields:
func (_m *API) Test() test.API {
ret := _m.Called()
var r0 test.API
if rf, ok := ret.Get(0).(func() test.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(test.API)
}
}
return r0
}
// VLAN provides a mock function with given fields:
func (_m *API) VLAN() vlan.API {
ret := _m.Called()
var r0 vlan.API
if rf, ok := ret.Get(0).(func() vlan.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(vlan.API)
}
}
return r0
}
// VSphere provides a mock function with given fields:
func (_m *API) VSphere() vsphere.API {
ret := _m.Called()
var r0 vsphere.API
if rf, ok := ret.Get(0).(func() vsphere.API); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(vsphere.API)
}
}
return r0
}