mock_cgroups

package
v0.0.0-...-c0defea Latest Latest
Warning

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

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

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