Documentation ¶
Overview ¶
Package mock_cgroup1 is a generated GoMock package.
Index ¶
- type MockCgroup
- func (m *MockCgroup) Add(arg0 cgroup1.Process, arg1 ...cgroup1.Name) error
- func (m *MockCgroup) AddProc(arg0 uint64, arg1 ...cgroup1.Name) error
- func (m *MockCgroup) AddTask(arg0 cgroup1.Process, arg1 ...cgroup1.Name) error
- func (m *MockCgroup) Delete() error
- func (m *MockCgroup) EXPECT() *MockCgroupMockRecorder
- func (m *MockCgroup) Freeze() error
- func (m *MockCgroup) MoveTo(arg0 cgroup1.Cgroup) error
- func (m *MockCgroup) New(arg0 string, arg1 *specs.LinuxResources) (cgroup1.Cgroup, error)
- func (m *MockCgroup) OOMEventFD() (uintptr, error)
- func (m *MockCgroup) Processes(arg0 cgroup1.Name, arg1 bool) ([]cgroup1.Process, error)
- func (m *MockCgroup) RegisterMemoryEvent(arg0 cgroup1.MemoryEvent) (uintptr, error)
- func (m *MockCgroup) Stat(arg0 ...cgroup1.ErrorHandler) (*stats.Metrics, error)
- func (m *MockCgroup) State() cgroup1.State
- func (m *MockCgroup) Subsystems() []cgroup1.Subsystem
- func (m *MockCgroup) Tasks(arg0 cgroup1.Name, arg1 bool) ([]cgroup1.Process, error)
- func (m *MockCgroup) Thaw() error
- func (m *MockCgroup) Update(arg0 *specs.LinuxResources) error
- type MockCgroupMockRecorder
- func (mr *MockCgroupMockRecorder) Add(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) AddProc(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) AddTask(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) Delete() *gomock.Call
- func (mr *MockCgroupMockRecorder) Freeze() *gomock.Call
- func (mr *MockCgroupMockRecorder) MoveTo(arg0 interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) New(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) OOMEventFD() *gomock.Call
- func (mr *MockCgroupMockRecorder) Processes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) RegisterMemoryEvent(arg0 interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) Stat(arg0 ...interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) State() *gomock.Call
- func (mr *MockCgroupMockRecorder) Subsystems() *gomock.Call
- func (mr *MockCgroupMockRecorder) Tasks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) Thaw() *gomock.Call
- func (mr *MockCgroupMockRecorder) Update(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCgroup ¶
type MockCgroup struct {
// contains filtered or unexported fields
}
MockCgroup is a mock of Cgroup interface.
func NewMockCgroup ¶
func NewMockCgroup(ctrl *gomock.Controller) *MockCgroup
NewMockCgroup creates a new mock instance.
func (*MockCgroup) AddProc ¶
func (m *MockCgroup) AddProc(arg0 uint64, arg1 ...cgroup1.Name) error
AddProc mocks base method.
func (*MockCgroup) EXPECT ¶
func (m *MockCgroup) EXPECT() *MockCgroupMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCgroup) MoveTo ¶
func (m *MockCgroup) MoveTo(arg0 cgroup1.Cgroup) error
MoveTo mocks base method.
func (*MockCgroup) New ¶
func (m *MockCgroup) New(arg0 string, arg1 *specs.LinuxResources) (cgroup1.Cgroup, error)
New mocks base method.
func (*MockCgroup) OOMEventFD ¶
func (m *MockCgroup) OOMEventFD() (uintptr, error)
OOMEventFD mocks base method.
func (*MockCgroup) RegisterMemoryEvent ¶
func (m *MockCgroup) RegisterMemoryEvent(arg0 cgroup1.MemoryEvent) (uintptr, error)
RegisterMemoryEvent mocks base method.
func (*MockCgroup) Stat ¶
func (m *MockCgroup) Stat(arg0 ...cgroup1.ErrorHandler) (*stats.Metrics, error)
Stat mocks base method.
func (*MockCgroup) Subsystems ¶
func (m *MockCgroup) Subsystems() []cgroup1.Subsystem
Subsystems mocks base method.
func (*MockCgroup) Update ¶
func (m *MockCgroup) Update(arg0 *specs.LinuxResources) error
Update mocks base method.
type MockCgroupMockRecorder ¶
type MockCgroupMockRecorder struct {
// contains filtered or unexported fields
}
MockCgroupMockRecorder is the mock recorder for MockCgroup.
func (*MockCgroupMockRecorder) Add ¶
func (mr *MockCgroupMockRecorder) Add(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockCgroupMockRecorder) AddProc ¶
func (mr *MockCgroupMockRecorder) AddProc(arg0 interface{}, arg1 ...interface{}) *gomock.Call
AddProc indicates an expected call of AddProc.
func (*MockCgroupMockRecorder) AddTask ¶
func (mr *MockCgroupMockRecorder) AddTask(arg0 interface{}, arg1 ...interface{}) *gomock.Call
AddTask indicates an expected call of AddTask.
func (*MockCgroupMockRecorder) Delete ¶
func (mr *MockCgroupMockRecorder) Delete() *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCgroupMockRecorder) Freeze ¶
func (mr *MockCgroupMockRecorder) Freeze() *gomock.Call
Freeze indicates an expected call of Freeze.
func (*MockCgroupMockRecorder) MoveTo ¶
func (mr *MockCgroupMockRecorder) MoveTo(arg0 interface{}) *gomock.Call
MoveTo indicates an expected call of MoveTo.
func (*MockCgroupMockRecorder) New ¶
func (mr *MockCgroupMockRecorder) New(arg0, arg1 interface{}) *gomock.Call
New indicates an expected call of New.
func (*MockCgroupMockRecorder) OOMEventFD ¶
func (mr *MockCgroupMockRecorder) OOMEventFD() *gomock.Call
OOMEventFD indicates an expected call of OOMEventFD.
func (*MockCgroupMockRecorder) Processes ¶
func (mr *MockCgroupMockRecorder) Processes(arg0, arg1 interface{}) *gomock.Call
Processes indicates an expected call of Processes.
func (*MockCgroupMockRecorder) RegisterMemoryEvent ¶
func (mr *MockCgroupMockRecorder) RegisterMemoryEvent(arg0 interface{}) *gomock.Call
RegisterMemoryEvent indicates an expected call of RegisterMemoryEvent.
func (*MockCgroupMockRecorder) Stat ¶
func (mr *MockCgroupMockRecorder) Stat(arg0 ...interface{}) *gomock.Call
Stat indicates an expected call of Stat.
func (*MockCgroupMockRecorder) State ¶
func (mr *MockCgroupMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*MockCgroupMockRecorder) Subsystems ¶
func (mr *MockCgroupMockRecorder) Subsystems() *gomock.Call
Subsystems indicates an expected call of Subsystems.
func (*MockCgroupMockRecorder) Tasks ¶
func (mr *MockCgroupMockRecorder) Tasks(arg0, arg1 interface{}) *gomock.Call
Tasks indicates an expected call of Tasks.
func (*MockCgroupMockRecorder) Thaw ¶
func (mr *MockCgroupMockRecorder) Thaw() *gomock.Call
Thaw indicates an expected call of Thaw.
func (*MockCgroupMockRecorder) Update ¶
func (mr *MockCgroupMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.