Fwupd.Remote¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Fwupd.Remote(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A source of metadata that provides firmware.
Remotes can be local (e.g. folders on a disk) or remote (e.g. downloaded over HTTP or IPFS).
See also: [class`FwupdClient`]
- classmethod flag_from_string(flag)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated flag.
New in version 1.9.4.
- classmethod flag_to_string(flag)[source]¶
- Parameters:
flag (
Fwupd.RemoteFlags
) – remote attribute flags, e.g.Fwupd.RemoteFlags.ENABLED
- Returns:
string, or
None
- Return type:
Returns the printable string for the flag.
New in version 1.9.4.
- classmethod kind_from_string(kind)[source]¶
- Parameters:
- Returns:
- Return type:
Converts an printable string to an enumerated type.
New in version 0.9.6.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
Fwupd.RemoteKind
) – aFwupd.RemoteKind
, e.g.Fwupd.RemoteKind.DOWNLOAD
- Returns:
a string, e.g.
download
- Return type:
Converts an enumerated type to a printable string.
New in version 0.9.6.
- classmethod new()[source]¶
- Returns:
a new
Fwupd.Remote
- Return type:
Creates a new fwupd remote.
New in version 0.9.3.
- add_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.RemoteFlags
) – theFwupd.RemoteFlags
, e.g.Fwupd.RemoteFlags.APPROVAL_REQUIRED
Adds a specific attribute flag to the attribute.
New in version 1.9.4.
- build_firmware_uri(url)[source]¶
-
Builds a URI for the URL using the username and password set for the remote, including any basename URI substitution.
New in version 0.9.7.
- build_metadata_sig_uri()[source]¶
- Raises:
- Returns:
a URI, or
None
for error- Return type:
Builds a URI for the metadata using the username and password set for the remote.
New in version 1.9.8.
- build_metadata_uri()[source]¶
- Raises:
- Returns:
a URI, or
None
for error- Return type:
Builds a URI for the metadata signature using the username and password set for the remote.
New in version 1.9.8.
- build_report_uri()[source]¶
- Raises:
- Returns:
a URI, or
None
for error- Return type:
Builds a URI for the URL using the username and password set for the remote.
New in version 1.9.1.
- get_age()[source]¶
- Returns:
a age, or
GObject.G_MAXUINT64
for unavailable- Return type:
Gets the age of the remote in seconds.
New in version 0.9.5.
- get_filename_cache()[source]¶
-
Gets the path and filename that the remote is using for a cache.
New in version 0.9.6.
- get_filename_cache_sig()[source]¶
-
Gets the path and filename that the remote is using for a signature cache.
New in version 0.9.7.
- get_filename_source()[source]¶
-
Gets the path and filename of the remote itself, typically a
.conf
file.New in version 0.9.8.
- get_flags()[source]¶
- Returns:
remote attribute flags, or 0 if unset
- Return type:
Gets the self flags.
New in version 1.9.4.
- get_metadata_uri_sig()[source]¶
-
Gets the URI for the remote metadata signature.
New in version 0.9.7.
- get_order_after()[source]¶
- Returns:
an array
- Return type:
[
str
]
Gets the list of remotes this plugin should be ordered after.
New in version 0.9.5.
- get_order_before()[source]¶
- Returns:
an array
- Return type:
[
str
]
Gets the list of remotes this plugin should be ordered before.
New in version 0.9.5.
- get_priority()[source]¶
- Returns:
a priority, or 0 for the default value
- Return type:
Gets the priority of the remote, where bigger numbers are better.
New in version 0.9.5.
- get_privacy_uri()[source]¶
-
Gets the remote privacy policy URL, e.g.
https://lvfs.readthedocs.io/en/latest/privacy.html
New in version 2.0.0.
- get_refresh_interval()[source]¶
- Returns:
value in seconds
- Return type:
Gets the plugin refresh interval in seconds.
New in version 1.9.4.
- get_remotes_dir()[source]¶
-
Gets the base directory for storing remote metadata
New in version 1.3.1.
- get_title()[source]¶
-
Gets the remote title, e.g.
Linux Vendor Firmware Service
.New in version 0.9.8.
- has_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.RemoteFlags
) – the remote flag, e.g.Fwupd.RemoteFlags.APPROVAL_REQUIRED
- Returns:
True
if the flag is set- Return type:
Finds if the remote has a specific flag.
New in version 1.9.4.
- load_signature(filename)[source]¶
-
Parses the signature, updating the metadata URI as appropriate.
New in version 1.4.0.
- load_signature_bytes(bytes)[source]¶
- Parameters:
bytes (
GLib.Bytes
) – data blob- Raises:
- Returns:
True
for success- Return type:
Parses the signature, updating the metadata URI as appropriate.
New in version 1.4.5.
- remove_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.RemoteFlags
) – theFwupd.RemoteFlags
, e.g.Fwupd.RemoteFlags.APPROVAL_REQUIRED
Removes a specific attribute flag from the remote.
New in version 1.9.4.
- set_agreement(agreement)[source]¶
-
Sets the remote agreement in AppStream markup format
New in version 1.0.7.
- set_checksum_sig(checksum_sig)[source]¶
-
Sets the remote signature checksum, typically only useful in the self tests.
New in version 2.0.0.
- set_filename_cache(filename)[source]¶
-
Sets the remote filename cache filename, typically only useful in the self tests.
New in version 1.8.2.
- set_filename_source(filename_source)[source]¶
-
Sets the source filename. This is typically a file in
/etc/fwupd/remotes/
.New in version 1.6.1.
- set_firmware_base_uri(firmware_base_uri)[source]¶
-
Sets the firmware base URI.
NOTE: This has to be set after MetadataURI.
New in version 2.0.2.
- set_flags(flags)[source]¶
- Parameters:
flags (
Fwupd.RemoteFlags
) – remote attribute flags, e.g.Fwupd.RemoteFlags.APPROVAL_REQUIRED
Sets the attribute flags.
New in version 1.9.4.
- set_id(id)[source]¶
-
Sets the remote ID.
NOTE: the ID has to be set before the URL.
New in version 1.9.3.
- set_kind(kind)[source]¶
- Parameters:
kind (
Fwupd.RemoteKind
) – aFwupd.RemoteKind
, e.g.Fwupd.RemoteKind.LOCAL
Sets the kind of the remote.
New in version 2.0.0.
- set_metadata_uri(metadata_uri)[source]¶
-
Sets the remote metadata URI.
NOTE: This has to be set before the username and password.
New in version 1.8.13.
- set_mtime(mtime)[source]¶
- Parameters:
mtime (
int
) – a UNIX timestamp
Sets the plugin modification time.
New in version 0.9.5.
- set_order_after(ids)[source]¶
-
Sets any remotes that should be ordered after this one.
New in version 2.0.0.
- set_order_before(ids)[source]¶
-
Sets any remotes that should be ordered before this one.
New in version 2.0.0.
- set_priority(priority)[source]¶
- Parameters:
priority (
int
) – an integer, where 1 is better
Sets the plugin priority.
New in version 0.9.5.
- set_privacy_uri(privacy_uri)[source]¶
- Parameters:
privacy_uri (
str
orNone
) – privacy URL, e.g. “https://lvfs.readthedocs.io/en/latest/privacy.html”
Sets the remote privacy policy URL.
New in version 2.0.0.
- set_refresh_interval(refresh_interval)[source]¶
- Parameters:
refresh_interval (
int
) – value in seconds
Sets the plugin refresh interval in seconds.
New in version 2.0.0.
Property Details¶
- Fwupd.Remote.props.approval_required¶
-
If firmware from the remote should be checked against the system list of approved firmware.
New in version 1.2.6.
- Fwupd.Remote.props.automatic_reports¶
-
The behavior for auto-uploading reports.
New in version 1.3.3.
- Fwupd.Remote.props.automatic_security_reports¶
-
The behavior for auto-uploading security reports.
New in version 1.5.0.
- Fwupd.Remote.props.enabled¶
-
If the remote is enabled and should be used.
New in version 0.9.3.
- Fwupd.Remote.props.flags¶
-
The remote flags.
New in version 1.9.4.