mock_cgroup1

package
v0.0.0-...-a080504 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_cgroup1 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 cgroup1.Process, arg1 ...cgroup1.Name) error

Add mocks base method.

func (*MockCgroup) AddProc

func (m *MockCgroup) AddProc(arg0 uint64, arg1 ...cgroup1.Name) error

AddProc mocks base method.

func (*MockCgroup) AddTask

func (m *MockCgroup) AddTask(arg0 cgroup1.Process, arg1 ...cgroup1.Name) error

AddTask 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 cgroup1.Cgroup) error

MoveTo mocks base method.

func (*MockCgroup) New

func (m *MockCgroup) New(arg0 string, arg1 *specs.LinuxResources) (cgroup1.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 cgroup1.Name, arg1 bool) ([]cgroup1.Process, error)

Processes mocks base method.

func (*MockCgroup) RegisterMemoryEvent

func (m *MockCgroup) RegisterMemoryEvent(arg0 cgroup1.MemoryEvent) (uintptr, error)

RegisterMemoryEvent mocks base method.

func (*MockCgroup) Stat

func (m *MockCgroup) Stat(arg0 ...cgroup1.ErrorHandler) (*stats.Metrics, error)

Stat mocks base method.

func (*MockCgroup) State

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

State mocks base method.

func (*MockCgroup) Subsystems

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

Subsystems mocks base method.

func (*MockCgroup) Tasks

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

Tasks mocks base method.

func (*MockCgroup) Thaw

func (m *MockCgroup) Thaw() error

Thaw mocks base method.

func (*MockCgroup) Update

func (m *MockCgroup) Update(arg0 *specs.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{}, arg1 ...interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockCgroupMockRecorder) AddProc

func (mr *MockCgroupMockRecorder) AddProc(arg0 interface{}, arg1 ...interface{}) *gomock.Call

AddProc indicates an expected call of AddProc.

func (*MockCgroupMockRecorder) AddTask

func (mr *MockCgroupMockRecorder) AddTask(arg0 interface{}, arg1 ...interface{}) *gomock.Call

AddTask indicates an expected call of AddTask.

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

func (mr *MockCgroupMockRecorder) RegisterMemoryEvent(arg0 interface{}) *gomock.Call

RegisterMemoryEvent indicates an expected call of RegisterMemoryEvent.

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

func (mr *MockCgroupMockRecorder) Tasks(arg0, arg1 interface{}) *gomock.Call

Tasks indicates an expected call of Tasks.

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