mock_cgroups

package
v1.20.3 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_cgroups is a generated GoMock package.

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
}

MockCgroup is a mock of Cgroup interface

func NewMockCgroup

func NewMockCgroup(ctrl *gomock.Controller) *MockCgroup

NewMockCgroup creates a new mock instance

func (*MockCgroup) Add

func (m *MockCgroup) Add(arg0 cgroups.Process) error

Add mocks base method

func (*MockCgroup) Delete

func (m *MockCgroup) Delete() error

Delete 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) Freeze

func (m *MockCgroup) Freeze() error

Freeze mocks base method

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

func (m *MockCgroup) Processes(arg0 cgroups.Name, arg1 bool) ([]cgroups.Process, error)

Processes mocks base method

func (*MockCgroup) Stat

func (m *MockCgroup) Stat(arg0 ...cgroups.ErrorHandler) (*cgroups.Stats, error)

Stat mocks base method

func (*MockCgroup) State

func (m *MockCgroup) State() cgroups.State

State mocks base method

func (*MockCgroup) Subsystems

func (m *MockCgroup) Subsystems() []cgroups.Subsystem

Subsystems mocks base method

func (*MockCgroup) Thaw

func (m *MockCgroup) Thaw() error

Thaw 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

Jump to

Keyboard shortcuts

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