-
Notifications
You must be signed in to change notification settings - Fork 319
/
ami.go
138 lines (118 loc) · 4.58 KB
/
ami.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/baetyl/baetyl/ami (interfaces: AMI)
// Package mock is a generated GoMock package.
package mock
import (
v1 "github.com/baetyl/baetyl-go/v2/spec/v1"
ami "github.com/baetyl/baetyl/ami"
gomock "github.com/golang/mock/gomock"
io "io"
reflect "reflect"
)
// MockAMI is a mock of AMI interface
type MockAMI struct {
ctrl *gomock.Controller
recorder *MockAMIMockRecorder
}
// MockAMIMockRecorder is the mock recorder for MockAMI
type MockAMIMockRecorder struct {
mock *MockAMI
}
// NewMockAMI creates a new mock instance
func NewMockAMI(ctrl *gomock.Controller) *MockAMI {
mock := &MockAMI{ctrl: ctrl}
mock.recorder = &MockAMIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAMI) EXPECT() *MockAMIMockRecorder {
return m.recorder
}
// ApplyApp mocks base method
func (m *MockAMI) ApplyApp(arg0 string, arg1 v1.Application, arg2 map[string]v1.Configuration, arg3 map[string]v1.Secret) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ApplyApp", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// ApplyApp indicates an expected call of ApplyApp
func (mr *MockAMIMockRecorder) ApplyApp(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyApp", reflect.TypeOf((*MockAMI)(nil).ApplyApp), arg0, arg1, arg2, arg3)
}
// CollectNodeInfo mocks base method
func (m *MockAMI) CollectNodeInfo() (*v1.NodeInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CollectNodeInfo")
ret0, _ := ret[0].(*v1.NodeInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CollectNodeInfo indicates an expected call of CollectNodeInfo
func (mr *MockAMIMockRecorder) CollectNodeInfo() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CollectNodeInfo", reflect.TypeOf((*MockAMI)(nil).CollectNodeInfo))
}
// CollectNodeStats mocks base method
func (m *MockAMI) CollectNodeStats() (*v1.NodeStats, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CollectNodeStats")
ret0, _ := ret[0].(*v1.NodeStats)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CollectNodeStats indicates an expected call of CollectNodeStats
func (mr *MockAMIMockRecorder) CollectNodeStats() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CollectNodeStats", reflect.TypeOf((*MockAMI)(nil).CollectNodeStats))
}
// DeleteApp mocks base method
func (m *MockAMI) DeleteApp(arg0, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteApp", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteApp indicates an expected call of DeleteApp
func (mr *MockAMIMockRecorder) DeleteApp(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockAMI)(nil).DeleteApp), arg0, arg1)
}
// FetchLog mocks base method
func (m *MockAMI) FetchLog(arg0, arg1 string, arg2, arg3 int64) (io.ReadCloser, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FetchLog", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FetchLog indicates an expected call of FetchLog
func (mr *MockAMIMockRecorder) FetchLog(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchLog", reflect.TypeOf((*MockAMI)(nil).FetchLog), arg0, arg1, arg2, arg3)
}
// RemoteCommand mocks base method
func (m *MockAMI) RemoteCommand(arg0 ami.DebugOptions, arg1 io.Reader, arg2, arg3 io.Writer) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoteCommand", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// RemoteCommand indicates an expected call of RemoteCommand
func (mr *MockAMIMockRecorder) RemoteCommand(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteCommand", reflect.TypeOf((*MockAMI)(nil).RemoteCommand), arg0, arg1, arg2, arg3)
}
// StatsApps mocks base method
func (m *MockAMI) StatsApps(arg0 string) ([]v1.AppStats, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StatsApps", arg0)
ret0, _ := ret[0].([]v1.AppStats)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StatsApps indicates an expected call of StatsApps
func (mr *MockAMIMockRecorder) StatsApps(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatsApps", reflect.TypeOf((*MockAMI)(nil).StatsApps), arg0)
}