...
1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 containerd "edge-infra.dev/pkg/sds/lib/containerd"
12 containerd0 "github.com/containerd/containerd"
13 gomock "github.com/golang/mock/gomock"
14 )
15
16
17 type MockRetriever struct {
18 ctrl *gomock.Controller
19 recorder *MockRetrieverMockRecorder
20 }
21
22
23 type MockRetrieverMockRecorder struct {
24 mock *MockRetriever
25 }
26
27
28 func NewMockRetriever(ctrl *gomock.Controller) *MockRetriever {
29 mock := &MockRetriever{ctrl: ctrl}
30 mock.recorder = &MockRetrieverMockRecorder{mock}
31 return mock
32 }
33
34
35 func (m *MockRetriever) EXPECT() *MockRetrieverMockRecorder {
36 return m.recorder
37 }
38
39
40 func (m *MockRetriever) GetContainersByLabels(arg0 context.Context, arg1 containerd.LabelFilters) ([]containerd0.Container, error) {
41 m.ctrl.T.Helper()
42 ret := m.ctrl.Call(m, "GetContainersByLabels", arg0, arg1)
43 ret0, _ := ret[0].([]containerd0.Container)
44 ret1, _ := ret[1].(error)
45 return ret0, ret1
46 }
47
48
49 func (mr *MockRetrieverMockRecorder) GetContainersByLabels(arg0, arg1 interface{}) *gomock.Call {
50 mr.mock.ctrl.T.Helper()
51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContainersByLabels", reflect.TypeOf((*MockRetriever)(nil).GetContainersByLabels), arg0, arg1)
52 }
53
View as plain text