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]
- public void add_flag (RemoteFlags flag)
Adds a specific attribute flag to the attribute.
- public string build_firmware_uri (string url) throws Error
Builds a URI for the URL using the username and password set for the
remote, including any basename URI substitution.
- public string build_metadata_sig_uri () throws Error
Builds a URI for the metadata using the username and password set for
the remote.
- public string build_metadata_uri () throws Error
Builds a URI for the metadata signature using the username and
password set for the remote.
- public string build_report_uri () throws Error
Builds a URI for the URL using the username and password set for the
remote.
- public bool ensure_checksum_sig () throws Error
Calculates the signature checksum of the remote using the filename
cache.
- public bool ensure_mtime () throws Error
Calculates the mtime of the remote using the filename cache.
- public uint64 get_age ()
Gets the age of the remote in seconds.
- public unowned string get_agreement ()
Gets the remote agreement in AppStream markup format
- public unowned string get_checksum ()
Gets the remote signature checksum.
- public unowned string get_checksum_metadata ()
Gets the remote metadata checksum.
- public unowned string get_filename_cache ()
Gets the path and filename that the remote is using for a cache.
- public unowned string get_filename_cache_sig ()
Gets the path and filename that the remote is using for a signature
cache.
- public unowned string get_filename_source ()
Gets the path and filename of the remote itself, typically a `.
- public unowned string get_firmware_base_uri ()
Gets the base URI for firmware.
- public RemoteFlags get_flags ()
Gets the self flags.
- public unowned string get_id ()
Gets the remote ID, e.
- public RemoteKind get_kind ()
Gets the kind of the remote.
- public unowned string get_metadata_uri ()
Gets the URI for the remote metadata.
- public unowned string get_metadata_uri_sig ()
Gets the URI for the remote metadata signature.
- public uint64 get_mtime ()
Gets the remote mtime in seconds.
- public unowned string[] get_order_after ()
Gets the list of remotes this remote should be ordered after.
- public unowned string[] get_order_before ()
Gets the list of remotes this remote should be ordered before.
- public unowned string get_password ()
Gets the password configured for the remote.
- public int get_priority ()
Gets the priority of the remote, where bigger numbers are better.
- public unowned string get_privacy_uri ()
Gets the remote privacy policy URL, e.
- public uint64 get_refresh_interval ()
Gets the remote refresh interval in seconds.
- public unowned string get_remotes_dir ()
Gets the base directory for storing remote metadata
- public unowned string get_report_uri ()
Gets the URI for the remote reporting.
- public unowned string get_title ()
Gets the remote title, e.
- public unowned string get_username ()
Gets the username configured for the remote.
- public bool has_flag (RemoteFlags flag)
Finds if the remote has a specific flag.
- public bool load_signature (string filename) throws Error
Parses the signature, updating the metadata URI as appropriate.
- public bool load_signature_bytes (Bytes bytes) throws Error
Parses the signature, updating the metadata URI as appropriate.
- public bool load_user_secrets () throws Error
Loads the secrets from a per-user store.
- public bool needs_refresh ()
Gets if the metadata remote needs re-downloading.
- public void remove_flag (RemoteFlags flag)
Removes a specific attribute flag from the remote.
- public bool save_user_secrets () throws Error
Saves the secrets to a per-user store.
- public void set_agreement (string? agreement)
Sets the remote agreement in AppStream markup format
- public void set_checksum_sig (string? checksum_sig)
Sets the remote signature checksum, typically only useful in the self
tests.
- public void set_filename_cache (string? filename)
Sets the remote filename cache filename, typically only useful in the
self tests.
- public void set_filename_source (string? filename_source)
Sets the source filename.
- public void set_firmware_base_uri (string? firmware_base_uri)
Sets the firmware base URI.
- public void set_flags (RemoteFlags flags)
Sets the attribute flags.
- public void set_id (string? id)
Sets the remote ID.
- public void set_kind (RemoteKind kind)
Sets the kind of the remote.
- public void set_metadata_uri (string? metadata_uri)
Sets the remote metadata URI.
- public void set_mtime (uint64 mtime)
Sets the remote modification time.
- public void set_order_after (string? ids)
Sets any remotes that should be ordered after this one.
- public void set_order_before (string? ids)
Sets any remotes that should be ordered before this one.
- public void set_password (string? password)
Sets the remote password.
- public void set_priority (int priority)
Sets the remote priority.
- public void set_privacy_uri (string? privacy_uri)
Sets the remote privacy policy URL.
- public void set_refresh_interval (uint64 refresh_interval)
Sets the remote refresh interval in seconds.
- public void set_remotes_dir (string? directory)
Sets the directory to store remote data
- public void set_report_uri (string? report_uri)
Sets the report URI.
- public void set_title (string? title)
Sets the remote title.
- public void set_username (string? username)
Sets the remote username.
- public bool setup () throws Error
Sets up the remote ready for use, checking that required parameters
have been set.