1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 containers "github.com/containerd/containerd/containers"
12 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockStore struct {
17 ctrl *gomock.Controller
18 recorder *MockStoreMockRecorder
19 }
20
21
22 type MockStoreMockRecorder struct {
23 mock *MockStore
24 }
25
26
27 func NewMockStore(ctrl *gomock.Controller) *MockStore {
28 mock := &MockStore{ctrl: ctrl}
29 mock.recorder = &MockStoreMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockStore) EXPECT() *MockStoreMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockStore) Create(arg0 context.Context, arg1 containers.Container) (containers.Container, error) {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "Create", arg0, arg1)
42 ret0, _ := ret[0].(containers.Container)
43 ret1, _ := ret[1].(error)
44 return ret0, ret1
45 }
46
47
48 func (mr *MockStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
49 mr.mock.ctrl.T.Helper()
50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStore)(nil).Create), arg0, arg1)
51 }
52
53
54 func (m *MockStore) Delete(arg0 context.Context, arg1 string) error {
55 m.ctrl.T.Helper()
56 ret := m.ctrl.Call(m, "Delete", arg0, arg1)
57 ret0, _ := ret[0].(error)
58 return ret0
59 }
60
61
62 func (mr *MockStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
63 mr.mock.ctrl.T.Helper()
64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStore)(nil).Delete), arg0, arg1)
65 }
66
67
68 func (m *MockStore) Get(arg0 context.Context, arg1 string) (containers.Container, error) {
69 m.ctrl.T.Helper()
70 ret := m.ctrl.Call(m, "Get", arg0, arg1)
71 ret0, _ := ret[0].(containers.Container)
72 ret1, _ := ret[1].(error)
73 return ret0, ret1
74 }
75
76
77 func (mr *MockStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
78 mr.mock.ctrl.T.Helper()
79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStore)(nil).Get), arg0, arg1)
80 }
81
82
83 func (m *MockStore) List(arg0 context.Context, arg1 ...string) ([]containers.Container, error) {
84 m.ctrl.T.Helper()
85 varargs := []interface{}{arg0}
86 for _, a := range arg1 {
87 varargs = append(varargs, a)
88 }
89 ret := m.ctrl.Call(m, "List", varargs...)
90 ret0, _ := ret[0].([]containers.Container)
91 ret1, _ := ret[1].(error)
92 return ret0, ret1
93 }
94
95
96 func (mr *MockStoreMockRecorder) List(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
97 mr.mock.ctrl.T.Helper()
98 varargs := append([]interface{}{arg0}, arg1...)
99 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStore)(nil).List), varargs...)
100 }
101
102
103 func (m *MockStore) Update(arg0 context.Context, arg1 containers.Container, arg2 ...string) (containers.Container, error) {
104 m.ctrl.T.Helper()
105 varargs := []interface{}{arg0, arg1}
106 for _, a := range arg2 {
107 varargs = append(varargs, a)
108 }
109 ret := m.ctrl.Call(m, "Update", varargs...)
110 ret0, _ := ret[0].(containers.Container)
111 ret1, _ := ret[1].(error)
112 return ret0, ret1
113 }
114
115
116 func (mr *MockStoreMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
117 mr.mock.ctrl.T.Helper()
118 varargs := append([]interface{}{arg0, arg1}, arg2...)
119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStore)(nil).Update), varargs...)
120 }
121
View as plain text