-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
KubeNodeGroup.go
99 lines (77 loc) · 1.99 KB
/
KubeNodeGroup.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
// Code generated by mockery v2.38.0. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// KubeNodeGroup is an autogenerated mock type for the KubeNodeGroup type
type KubeNodeGroup struct {
mock.Mock
}
// GetAMIFamily provides a mock function with given fields:
func (_m *KubeNodeGroup) GetAMIFamily() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetAMIFamily")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// ListOptions provides a mock function with given fields:
func (_m *KubeNodeGroup) ListOptions() v1.ListOptions {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for ListOptions")
}
var r0 v1.ListOptions
if rf, ok := ret.Get(0).(func() v1.ListOptions); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(v1.ListOptions)
}
return r0
}
// NameString provides a mock function with given fields:
func (_m *KubeNodeGroup) NameString() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for NameString")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Size provides a mock function with given fields:
func (_m *KubeNodeGroup) Size() int {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Size")
}
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
return r0
}
// NewKubeNodeGroup creates a new instance of KubeNodeGroup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewKubeNodeGroup(t interface {
mock.TestingT
Cleanup(func())
}) *KubeNodeGroup {
mock := &KubeNodeGroup{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}