Documentation
¶
Overview ¶
Package systemd is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( ActiveStateActivating ActiveStateType = "activating" ActiveStateActive ActiveStateType = "active" ActiveStateFailed ActiveStateType = "failed" ActiveStateInactive ActiveStateType = "inactive" SubStateStartPre SubStateType = "start-pre" SubStateStartPost SubStateType = "start-post" SubStateRunning SubStateType = "running" SubStateExited SubStateType = "exited" SubStateDead SubStateType = "dead" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveStateType ¶
type ActiveStateType string
type Manager ¶
type Manager interface {
// EnsurePatterns sets the match patterns for systemd units.
EnsurePatterns([]string) error
status.Exporter
}
func NewManager ¶
func NewManager(log *log.PrefixLogger, client *client.Systemd) Manager
type MockManager ¶ added in v0.5.0
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶ added in v0.5.0
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶ added in v0.5.0
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) EnsurePatterns ¶ added in v0.5.0
func (m *MockManager) EnsurePatterns(arg0 []string) error
EnsurePatterns mocks base method.
func (*MockManager) Status ¶ added in v0.5.0
func (m *MockManager) Status(arg0 context.Context, arg1 *v1alpha1.DeviceStatus, arg2 ...status.CollectorOpt) error
Status mocks base method.
type MockManagerMockRecorder ¶ added in v0.5.0
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) EnsurePatterns ¶ added in v0.5.0
func (mr *MockManagerMockRecorder) EnsurePatterns(arg0 any) *gomock.Call
EnsurePatterns indicates an expected call of EnsurePatterns.
type SubStateType ¶
type SubStateType string
type SystemDUnitListEntry ¶
type SystemDUnitListEntry struct {
Unit string `json:"unit"`
LoadState string `json:"load"`
ActiveState ActiveStateType `json:"active"`
Sub SubStateType `json:"sub"`
Description string `json:"description"`
}
Click to show internal directories.
Click to hide internal directories.