-
Notifications
You must be signed in to change notification settings - Fork 283
/
translate.go
124 lines (103 loc) · 3.85 KB
/
translate.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
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/providers/tinkerbell/hardware/translate.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
hardware "github.com/aws/eks-anywhere/pkg/providers/tinkerbell/hardware"
gomock "github.com/golang/mock/gomock"
)
// MockMachineReader is a mock of MachineReader interface.
type MockMachineReader struct {
ctrl *gomock.Controller
recorder *MockMachineReaderMockRecorder
}
// MockMachineReaderMockRecorder is the mock recorder for MockMachineReader.
type MockMachineReaderMockRecorder struct {
mock *MockMachineReader
}
// NewMockMachineReader creates a new mock instance.
func NewMockMachineReader(ctrl *gomock.Controller) *MockMachineReader {
mock := &MockMachineReader{ctrl: ctrl}
mock.recorder = &MockMachineReaderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMachineReader) EXPECT() *MockMachineReaderMockRecorder {
return m.recorder
}
// Read mocks base method.
func (m *MockMachineReader) Read() (hardware.Machine, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read")
ret0, _ := ret[0].(hardware.Machine)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Read indicates an expected call of Read.
func (mr *MockMachineReaderMockRecorder) Read() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockMachineReader)(nil).Read))
}
// MockMachineWriter is a mock of MachineWriter interface.
type MockMachineWriter struct {
ctrl *gomock.Controller
recorder *MockMachineWriterMockRecorder
}
// MockMachineWriterMockRecorder is the mock recorder for MockMachineWriter.
type MockMachineWriterMockRecorder struct {
mock *MockMachineWriter
}
// NewMockMachineWriter creates a new mock instance.
func NewMockMachineWriter(ctrl *gomock.Controller) *MockMachineWriter {
mock := &MockMachineWriter{ctrl: ctrl}
mock.recorder = &MockMachineWriterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMachineWriter) EXPECT() *MockMachineWriterMockRecorder {
return m.recorder
}
// Write mocks base method.
func (m *MockMachineWriter) Write(arg0 hardware.Machine) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Write indicates an expected call of Write.
func (mr *MockMachineWriterMockRecorder) Write(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockMachineWriter)(nil).Write), arg0)
}
// MockMachineValidator is a mock of MachineValidator interface.
type MockMachineValidator struct {
ctrl *gomock.Controller
recorder *MockMachineValidatorMockRecorder
}
// MockMachineValidatorMockRecorder is the mock recorder for MockMachineValidator.
type MockMachineValidatorMockRecorder struct {
mock *MockMachineValidator
}
// NewMockMachineValidator creates a new mock instance.
func NewMockMachineValidator(ctrl *gomock.Controller) *MockMachineValidator {
mock := &MockMachineValidator{ctrl: ctrl}
mock.recorder = &MockMachineValidatorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMachineValidator) EXPECT() *MockMachineValidatorMockRecorder {
return m.recorder
}
// Validate mocks base method.
func (m *MockMachineValidator) Validate(arg0 hardware.Machine) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Validate", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Validate indicates an expected call of Validate.
func (mr *MockMachineValidatorMockRecorder) Validate(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockMachineValidator)(nil).Validate), arg0)
}