mock_system

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_system is a generated GoMock package.

Package mock_system is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDbusConn

type MockDbusConn struct {
	// contains filtered or unexported fields
}

MockDbusConn is a mock of DbusConn interface.

func NewMockDbusConn

func NewMockDbusConn(ctrl *gomock.Controller) *MockDbusConn

NewMockDbusConn creates a new mock instance.

func (*MockDbusConn) Close

func (m *MockDbusConn) Close() error

Close mocks base method.

func (*MockDbusConn) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDbusConn) Object

func (m *MockDbusConn) Object(dest string, path dbus.ObjectPath) dbus.BusObject

Object mocks base method.

func (*MockDbusConn) Signal

func (m *MockDbusConn) Signal(ch chan<- *dbus.Signal)

Signal mocks base method.

type MockDbusConnMockRecorder

type MockDbusConnMockRecorder struct {
	// contains filtered or unexported fields
}

MockDbusConnMockRecorder is the mock recorder for MockDbusConn.

func (*MockDbusConnMockRecorder) Close

func (mr *MockDbusConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDbusConnMockRecorder) Object

func (mr *MockDbusConnMockRecorder) Object(dest, path interface{}) *gomock.Call

Object indicates an expected call of Object.

func (*MockDbusConnMockRecorder) Signal

func (mr *MockDbusConnMockRecorder) Signal(ch interface{}) *gomock.Call

Signal indicates an expected call of Signal.

type MockDbusObject

type MockDbusObject struct {
	// contains filtered or unexported fields
}

MockDbusObject is a mock of DbusObject interface.

func NewMockDbusObject

func NewMockDbusObject(ctrl *gomock.Controller) *MockDbusObject

NewMockDbusObject creates a new mock instance.

func (*MockDbusObject) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDbusObject) Go

func (m *MockDbusObject) Go(method string, flags dbus.Flags, ch chan *dbus.Call, args ...interface{}) *dbus.Call

Go mocks base method.

type MockDbusObjectMockRecorder

type MockDbusObjectMockRecorder struct {
	// contains filtered or unexported fields
}

MockDbusObjectMockRecorder is the mock recorder for MockDbusObject.

func (*MockDbusObjectMockRecorder) Go

func (mr *MockDbusObjectMockRecorder) Go(method, flags, ch interface{}, args ...interface{}) *gomock.Call

Go indicates an expected call of Go.

type MockPts

type MockPts struct {
	// contains filtered or unexported fields
}

MockPts is a mock of Pts interface.

func NewMockPts

func NewMockPts(ctrl *gomock.Controller) *MockPts

NewMockPts creates a new mock instance.

func (*MockPts) EXPECT

func (m *MockPts) EXPECT() *MockPtsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPts) NewPts

func (m *MockPts) NewPts() (io.ReadCloser, int, error)

NewPts mocks base method.

type MockPtsMockRecorder

type MockPtsMockRecorder struct {
	// contains filtered or unexported fields
}

MockPtsMockRecorder is the mock recorder for MockPts.

func (*MockPtsMockRecorder) NewPts

func (mr *MockPtsMockRecorder) NewPts() *gomock.Call

NewPts indicates an expected call of NewPts.

type MockSystemdConnection

type MockSystemdConnection struct {
	// contains filtered or unexported fields
}

MockSystemdConnection is a mock of SystemdConnection interface.

func NewMockSystemdConnection

func NewMockSystemdConnection(ctrl *gomock.Controller) *MockSystemdConnection

NewMockSystemdConnection creates a new mock instance.

func (*MockSystemdConnection) Close

func (m *MockSystemdConnection) Close() error

Close mocks base method.

func (*MockSystemdConnection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSystemdConnection) ListUnits

func (m *MockSystemdConnection) ListUnits(ctx context.Context) ([]*system.Unit, error)

ListUnits mocks base method.

func (*MockSystemdConnection) Signal

func (m *MockSystemdConnection) Signal(ch chan<- *dbus.Signal)

Signal mocks base method.

func (*MockSystemdConnection) StartTransientUnit

func (m *MockSystemdConnection) StartTransientUnit(ctx context.Context, name, mode string, props []system.DbusProperty) (dbus.ObjectPath, error)

StartTransientUnit mocks base method.

func (*MockSystemdConnection) StopUnit

func (m *MockSystemdConnection) StopUnit(ctx context.Context, unitName string) error

StopUnit mocks base method.

type MockSystemdConnectionMockRecorder

type MockSystemdConnectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockSystemdConnectionMockRecorder is the mock recorder for MockSystemdConnection.

func (*MockSystemdConnectionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockSystemdConnectionMockRecorder) ListUnits

func (mr *MockSystemdConnectionMockRecorder) ListUnits(ctx interface{}) *gomock.Call

ListUnits indicates an expected call of ListUnits.

func (*MockSystemdConnectionMockRecorder) Signal

func (mr *MockSystemdConnectionMockRecorder) Signal(ch interface{}) *gomock.Call

Signal indicates an expected call of Signal.

func (*MockSystemdConnectionMockRecorder) StartTransientUnit

func (mr *MockSystemdConnectionMockRecorder) StartTransientUnit(ctx, name, mode, props interface{}) *gomock.Call

StartTransientUnit indicates an expected call of StartTransientUnit.

func (*MockSystemdConnectionMockRecorder) StopUnit

func (mr *MockSystemdConnectionMockRecorder) StopUnit(ctx, unitName interface{}) *gomock.Call

StopUnit indicates an expected call of StopUnit.

Jump to

Keyboard shortcuts

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