Skip to content

io.systemd.SysUpdate

APIs to manage system updates

Property Value
Go package github.com/rossedman/sdvarlink/systemd/latest/sysupdate
Socket /run/systemd/io.systemd.SysUpdate
Available since systemd v262
Methods · types · errors 3 · 4 · 2

Methods

ListFeatures

Show optional features

func (c *Client) ListFeatures(ctx context.Context, in ListFeaturesIn) (*ListFeaturesOut, error)

Parameters

Field Type Description
target TargetIdentifier Target to list features for.

Reply

Field Type Description
features []Feature The configured features.

CheckNew

Check if there’s a new version available

func (c *Client) CheckNew(ctx context.Context, in CheckNewIn) (*CheckNewOut, error)

Parameters

Field Type Description
target TargetIdentifier Target to check for updates for.
allowInteractiveAuthentication ?bool Controls whether interactive authentication (via polkit) shall be allowed. If unspecified defaults to false.

Reply

Field Type Description
available string The version string for the new version which is available.

ListTargets

Show targets

func (c *Client) ListTargets(ctx context.Context) (*ListTargetsOut, error)

Reply

Field Type Description
targets []Target The configured targets.

Types

TargetClass

Class of a Target.

Value Description
machine Container or machine managed by systemd-machined.service(8).
portable Portable service.
sysext System extension managed by systemd-sysext.service(8).
confext Configuration extension managed by systemd-confext.service(8).
host Host system.
component Component managed by systemd-sysupdate.service(8).

TargetIdentifier

Identifier for a component of the system (i.e. the host itself, a sysext, a confext, etc.) that can be updated by systemd-sysupdate(8).

Field Type Description
class TargetClass Where the target was enumerated.
name ?string Name of the target, unique within a class.

Target

Type containing a configured sysupdate target.

Field Type Description
id TargetIdentifier Identifier for the target.

Feature

Type containing a configured sysupdate feature.

Field Type Description
id string Identifier for the feature.
description ?string A short human readable description of the feature.
documentation ?[]string URLs to documentation for the feature.
appStream ?string A URL to an AppStream catalog XML file describing the feature.
enabled bool Whether the feature is enabled.
suggested ?bool Whether the feature is suggested for enablement.
transfers ?[]string Array of IDs of the transfers (including currently disabled ones) which are controlled by this feature.

Errors

Error Go type Description
NoUpdateNeeded NoUpdateNeededError Error indicating that no update is currently available to update to.
NoSuchTarget NoSuchTargetError Error indicating the specified target doesn’t exist