Documentation ¶
Overview ¶
Package mock_cgroups is a generated GoMock package.
Index ¶
- type MockCgroup
- func (m *MockCgroup) Add(arg0 cgroups.Process) error
- func (m *MockCgroup) Delete() error
- func (m *MockCgroup) EXPECT() *MockCgroupMockRecorder
- func (m *MockCgroup) Freeze() error
- func (m *MockCgroup) MoveTo(arg0 cgroups.Cgroup) error
- func (m *MockCgroup) New(arg0 string, arg1 *specs_go.LinuxResources) (cgroups.Cgroup, error)
- func (m *MockCgroup) OOMEventFD() (uintptr, error)
- func (m *MockCgroup) Processes(arg0 cgroups.Name, arg1 bool) ([]cgroups.Process, error)
- func (m *MockCgroup) Stat(arg0 ...cgroups.ErrorHandler) (*cgroups.Stats, error)
- func (m *MockCgroup) State() cgroups.State
- func (m *MockCgroup) Subsystems() []cgroups.Subsystem
- func (m *MockCgroup) Thaw() error
- func (m *MockCgroup) Update(arg0 *specs_go.LinuxResources) error
- type MockCgroupMockRecorder
- func (mr *MockCgroupMockRecorder) Add(arg0 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) Stat(arg0 ...interface{}) *gomock.Call
- func (mr *MockCgroupMockRecorder) State() *gomock.Call
- func (mr *MockCgroupMockRecorder) Subsystems() *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) 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 cgroups.Cgroup) error
MoveTo mocks base method
func (*MockCgroup) New ¶
func (m *MockCgroup) New(arg0 string, arg1 *specs_go.LinuxResources) (cgroups.Cgroup, error)
New mocks base method
func (*MockCgroup) OOMEventFD ¶
func (m *MockCgroup) OOMEventFD() (uintptr, error)
OOMEventFD mocks base method
func (*MockCgroup) Stat ¶
func (m *MockCgroup) Stat(arg0 ...cgroups.ErrorHandler) (*cgroups.Stats, error)
Stat mocks base method
func (*MockCgroup) Subsystems ¶
func (m *MockCgroup) Subsystems() []cgroups.Subsystem
Subsystems mocks base method
func (*MockCgroup) Update ¶
func (m *MockCgroup) Update(arg0 *specs_go.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{}) *gomock.Call
Add indicates an expected call of Add
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) 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) 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