Versions in this module Expand all Collapse all v0 v0.1.13 Apr 23, 2026 Changes in this version + const ACTIVATING + const ACTIVE + const FAILED + const INACTIVE + var ErrFailed = errors.New("update has failed") + type Descriptor struct + BootID string + Chassis string + DefaultHostname string + Deployment any + FirmwareDate int64 + FirmwareVendor string + FirmwareVersion string + HardwareModel string + HardwareSerial string + HardwareVendor string + Hostname string + HostnameSource string + IconName string + KernelName string + KernelRelease string + KernelVersion string + Location any + MachineID string + MachineInformationData []any + OperatingSystemCPEName any + OperatingSystemHomeURL string + OperatingSystemPrettyName string + OperatingSystemReleaseData []string + PrettyHostname any + ProductUUID string + StaticHostname string + VSockCID any + type Interface interface + Close func() + Describe func(ctx context.Context) (*Descriptor, error) + DisableShutdownInhibit func() error + EnableShutdownInhibit func(ctx context.Context, cb func(ctx2 context.Context) error) error + GetUnitByName func(ctx context.Context, unit string) (dbus.UnitStatus, error) + IsConnected func() bool + ListUnitsByNames func(ctx context.Context, units []string) ([]dbus.UnitStatus, error) + ReconcileSysUpdate func(ctx context.Context, hv *v1.Hypervisor) (bool, error) + ReloadUnit func(ctx context.Context, unit string) (int, error) + StartUnit func(ctx context.Context, unit string) (int, error) + type InterfaceMock struct + CloseFunc func() + DescribeFunc func(ctx context.Context) (*Descriptor, error) + DisableShutdownInhibitFunc func() error + EnableShutdownInhibitFunc func(ctx context.Context, cb func(ctx2 context.Context) error) error + GetUnitByNameFunc func(ctx context.Context, unit string) (systemd.UnitStatus, error) + IsConnectedFunc func() bool + ListUnitsByNamesFunc func(ctx context.Context, units []string) ([]systemd.UnitStatus, error) + ReconcileSysUpdateFunc func(ctx context.Context, hv *v1.Hypervisor) (bool, error) + ReloadUnitFunc func(ctx context.Context, unit string) (int, error) + StartUnitFunc func(ctx context.Context, unit string) (int, error) + func (mock *InterfaceMock) Close() + func (mock *InterfaceMock) CloseCalls() []struct{} + func (mock *InterfaceMock) Describe(ctx context.Context) (*Descriptor, error) + func (mock *InterfaceMock) DescribeCalls() []struct{ ... } + func (mock *InterfaceMock) DisableShutdownInhibit() error + func (mock *InterfaceMock) DisableShutdownInhibitCalls() []struct{} + func (mock *InterfaceMock) EnableShutdownInhibit(ctx context.Context, cb func(ctx2 context.Context) error) error + func (mock *InterfaceMock) EnableShutdownInhibitCalls() []struct{ ... } + func (mock *InterfaceMock) GetUnitByName(ctx context.Context, unit string) (systemd.UnitStatus, error) + func (mock *InterfaceMock) GetUnitByNameCalls() []struct{ ... } + func (mock *InterfaceMock) IsConnected() bool + func (mock *InterfaceMock) IsConnectedCalls() []struct{} + func (mock *InterfaceMock) ListUnitsByNames(ctx context.Context, units []string) ([]systemd.UnitStatus, error) + func (mock *InterfaceMock) ListUnitsByNamesCalls() []struct{ ... } + func (mock *InterfaceMock) ReconcileSysUpdate(ctx context.Context, hv *v1.Hypervisor) (bool, error) + func (mock *InterfaceMock) ReconcileSysUpdateCalls() []struct{ ... } + func (mock *InterfaceMock) ReloadUnit(ctx context.Context, unit string) (int, error) + func (mock *InterfaceMock) ReloadUnitCalls() []struct{ ... } + func (mock *InterfaceMock) StartUnit(ctx context.Context, unit string) (int, error) + func (mock *InterfaceMock) StartUnitCalls() []struct{ ... } + type SystemdConn struct + func NewSystemd(ctx context.Context) (*SystemdConn, error) + func (s *SystemdConn) Close() + func (s *SystemdConn) Describe(ctx context.Context) (*Descriptor, error) + func (s *SystemdConn) DisableShutdownInhibit() error + func (s *SystemdConn) EnableShutdownInhibit(ctx context.Context, cb func(context.Context) error) error + func (s *SystemdConn) GetUnitByName(ctx context.Context, unit string) (systemd.UnitStatus, error) + func (s *SystemdConn) IsConnected() bool + func (s *SystemdConn) ListUnitsByNames(ctx context.Context, units []string) ([]systemd.UnitStatus, error) + func (s *SystemdConn) ReconcileSysUpdate(ctx context.Context, hv *v1.Hypervisor) (bool, error) + func (s *SystemdConn) ReloadUnit(ctx context.Context, unit string) (int, error) + func (s *SystemdConn) StartUnit(ctx context.Context, unit string) (int, error)