mock_cgroups

package
v1.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Add

func (_m *MockCgroup) Add(_param0 cgroups.Process) error

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) MoveTo

func (_m *MockCgroup) MoveTo(_param0 cgroups.Cgroup) 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) Processes

func (_m *MockCgroup) Processes(_param0 cgroups.Name, _param1 bool) ([]cgroups.Process, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL