-
Notifications
You must be signed in to change notification settings - Fork 51
/
mock_cgnetcls.go
90 lines (72 loc) · 2.58 KB
/
mock_cgnetcls.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: interfaces.go
// nolint
package mock_cgnetcls
import (
gomock "github.com/golang/mock/gomock"
)
// Mock of Cgroupnetcls interface
type MockCgroupnetcls struct {
ctrl *gomock.Controller
recorder *_MockCgroupnetclsRecorder
}
// Recorder for MockCgroupnetcls (not exported)
type _MockCgroupnetclsRecorder struct {
mock *MockCgroupnetcls
}
func NewMockCgroupnetcls(ctrl *gomock.Controller) *MockCgroupnetcls {
mock := &MockCgroupnetcls{ctrl: ctrl}
mock.recorder = &_MockCgroupnetclsRecorder{mock}
return mock
}
func (_m *MockCgroupnetcls) EXPECT() *_MockCgroupnetclsRecorder {
return _m.recorder
}
func (_m *MockCgroupnetcls) Creategroup(cgroupname string) error {
ret := _m.ctrl.Call(_m, "Creategroup", cgroupname)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) Creategroup(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Creategroup", arg0)
}
func (_m *MockCgroupnetcls) AssignMark(cgroupname string, mark uint64) error {
ret := _m.ctrl.Call(_m, "AssignMark", cgroupname, mark)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) AssignMark(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AssignMark", arg0, arg1)
}
func (_m *MockCgroupnetcls) AddProcess(cgroupname string, pid int) error {
ret := _m.ctrl.Call(_m, "AddProcess", cgroupname, pid)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) AddProcess(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AddProcess", arg0, arg1)
}
func (_m *MockCgroupnetcls) RemoveProcess(cgroupname string, pid int) error {
ret := _m.ctrl.Call(_m, "RemoveProcess", cgroupname, pid)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) RemoveProcess(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RemoveProcess", arg0, arg1)
}
func (_m *MockCgroupnetcls) DeleteCgroup(cgroupname string) error {
ret := _m.ctrl.Call(_m, "DeleteCgroup", cgroupname)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) DeleteCgroup(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteCgroup", arg0)
}
func (_m *MockCgroupnetcls) Deletebasepath(contextID string) bool {
ret := _m.ctrl.Call(_m, "Deletebasepath", contextID)
ret0, _ := ret[0].(bool)
return ret0
}
func (_mr *_MockCgroupnetclsRecorder) Deletebasepath(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Deletebasepath", arg0)
}