systemd

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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.

func (*MockManagerMockRecorder) Status added in v0.5.0

func (mr *MockManagerMockRecorder) Status(arg0, arg1 any, arg2 ...any) *gomock.Call

Status indicates an expected call of Status.

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"`
}

Jump to

Keyboard shortcuts

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