Documentation
¶
Overview ¶
Package mock_dbus is a generated GoMock package.
Index ¶
- type MockConnection
- func (m *MockConnection) Close()
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) GetUnitPropertiesContext(ctx context.Context, unit string) (map[string]any, error)
- func (m *MockConnection) ReloadUnitContext(arg0 context.Context, arg1, arg2 string, arg3 chan<- string) (int, error)
- func (m *MockConnection) RestartUnitContext(ctx context.Context, name, mode string, ch chan<- string) (int, error)
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) GetUnitPropertiesContext(ctx, unit any) *gomock.Call
- func (mr *MockConnectionMockRecorder) ReloadUnitContext(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockConnectionMockRecorder) RestartUnitContext(ctx, name, mode, ch any) *gomock.Call
- type MockSystem
- type MockSystemMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) GetUnitPropertiesContext ¶
func (m *MockConnection) GetUnitPropertiesContext(ctx context.Context, unit string) (map[string]any, error)
GetUnitPropertiesContext mocks base method.
func (*MockConnection) ReloadUnitContext ¶
func (m *MockConnection) ReloadUnitContext(arg0 context.Context, arg1, arg2 string, arg3 chan<- string) (int, error)
ReloadUnitContext mocks base method.
func (*MockConnection) RestartUnitContext ¶
func (m *MockConnection) RestartUnitContext(ctx context.Context, name, mode string, ch chan<- string) (int, error)
RestartUnitContext mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnectionMockRecorder) GetUnitPropertiesContext ¶
func (mr *MockConnectionMockRecorder) GetUnitPropertiesContext(ctx, unit any) *gomock.Call
GetUnitPropertiesContext indicates an expected call of GetUnitPropertiesContext.
func (*MockConnectionMockRecorder) ReloadUnitContext ¶
func (mr *MockConnectionMockRecorder) ReloadUnitContext(arg0, arg1, arg2, arg3 any) *gomock.Call
ReloadUnitContext indicates an expected call of ReloadUnitContext.
func (*MockConnectionMockRecorder) RestartUnitContext ¶
func (mr *MockConnectionMockRecorder) RestartUnitContext(ctx, name, mode, ch any) *gomock.Call
RestartUnitContext indicates an expected call of RestartUnitContext.
type MockSystem ¶
type MockSystem struct {
// contains filtered or unexported fields
}
MockSystem is a mock of System interface.
func NewMockSystem ¶
func NewMockSystem(ctrl *gomock.Controller) *MockSystem
NewMockSystem creates a new mock instance.
func (*MockSystem) EXPECT ¶
func (m *MockSystem) EXPECT() *MockSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSystem) NewConn ¶
func (m *MockSystem) NewConn(ctx context.Context) (dbus.Connection, error)
NewConn mocks base method.
type MockSystemMockRecorder ¶
type MockSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockSystemMockRecorder is the mock recorder for MockSystem.