Documentation ¶
Index ¶
- type MockCgroup
- func (_m *MockCgroup) Add(_param0 cgroups.Process) error
- func (_m *MockCgroup) Delete() error
- func (_m *MockCgroup) EXPECT() *_MockCgroupRecorder
- func (_m *MockCgroup) Freeze() error
- func (_m *MockCgroup) MoveTo(_param0 cgroups.Cgroup) error
- func (_m *MockCgroup) New(_param0 string, _param1 *specs_go.LinuxResources) (cgroups.Cgroup, error)
- func (_m *MockCgroup) OOMEventFD() (uintptr, error)
- func (_m *MockCgroup) Processes(_param0 cgroups.Name, _param1 bool) ([]cgroups.Process, error)
- func (_m *MockCgroup) Stat(_param0 ...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(_param0 *specs_go.LinuxResources) error
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
}
Mock of Cgroup interface
func NewMockCgroup ¶
func NewMockCgroup(ctrl *gomock.Controller) *MockCgroup
func (*MockCgroup) Delete ¶
func (_m *MockCgroup) Delete() error
func (*MockCgroup) EXPECT ¶
func (_m *MockCgroup) EXPECT() *_MockCgroupRecorder
func (*MockCgroup) Freeze ¶
func (_m *MockCgroup) Freeze() error
func (*MockCgroup) New ¶
func (_m *MockCgroup) New(_param0 string, _param1 *specs_go.LinuxResources) (cgroups.Cgroup, error)
func (*MockCgroup) OOMEventFD ¶
func (_m *MockCgroup) OOMEventFD() (uintptr, error)
func (*MockCgroup) Stat ¶
func (_m *MockCgroup) Stat(_param0 ...cgroups.ErrorHandler) (*cgroups.Stats, error)
func (*MockCgroup) State ¶
func (_m *MockCgroup) State() cgroups.State
func (*MockCgroup) Subsystems ¶
func (_m *MockCgroup) Subsystems() []cgroups.Subsystem
func (*MockCgroup) Thaw ¶
func (_m *MockCgroup) Thaw() error
func (*MockCgroup) Update ¶
func (_m *MockCgroup) Update(_param0 *specs_go.LinuxResources) error
Click to show internal directories.
Click to hide internal directories.