Documentation
¶
Overview ¶
Package mock_system is a generated GoMock package.
Package mock_system is a generated GoMock package.
Index ¶
- type MockDbusConn
- type MockDbusConnMockRecorder
- type MockDbusObject
- type MockDbusObjectMockRecorder
- type MockPts
- type MockPtsMockRecorder
- type MockSystemdConnection
- func (m *MockSystemdConnection) Close() error
- func (m *MockSystemdConnection) EXPECT() *MockSystemdConnectionMockRecorder
- func (m *MockSystemdConnection) ListUnits(ctx context.Context) ([]*system.Unit, error)
- func (m *MockSystemdConnection) Signal(ch chan<- *dbus.Signal)
- func (m *MockSystemdConnection) StartTransientUnit(ctx context.Context, name, mode string, props []system.DbusProperty) (dbus.ObjectPath, error)
- func (m *MockSystemdConnection) StopUnit(ctx context.Context, unitName string) error
- type MockSystemdConnectionMockRecorder
- func (mr *MockSystemdConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockSystemdConnectionMockRecorder) ListUnits(ctx interface{}) *gomock.Call
- func (mr *MockSystemdConnectionMockRecorder) Signal(ch interface{}) *gomock.Call
- func (mr *MockSystemdConnectionMockRecorder) StartTransientUnit(ctx, name, mode, props interface{}) *gomock.Call
- func (mr *MockSystemdConnectionMockRecorder) StopUnit(ctx, unitName interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockDbusConn) EXPECT() *MockDbusConnMockRecorder
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 ¶
func (m *MockDbusObject) EXPECT() *MockDbusObjectMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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 ¶
func (m *MockSystemdConnection) EXPECT() *MockSystemdConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
type MockSystemdConnectionMockRecorder ¶
type MockSystemdConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockSystemdConnectionMockRecorder is the mock recorder for MockSystemdConnection.
func (*MockSystemdConnectionMockRecorder) Close ¶
func (mr *MockSystemdConnectionMockRecorder) Close() *gomock.Call
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.