Remote#
Superclasses: Object
- Constructors:
Remote(**properties)
new(name:str) -> Flatpak.Remote
new_from_file(name:str, data:GLib.Bytes) -> Flatpak.Remote
Constructors#
- class Remote
- classmethod new(name: str) Remote #
Returns a new remote object which can be used to configure a new remote.
Note: This is a local configuration object, you must commit changes using
modify_remote()
oradd_remote()
for the changes to take effect.- Parameters:
name – a name
- classmethod new_from_file(name: str, data: Bytes) Remote #
Returns a new pre-filled remote object which can be used to configure a new remote. The fields in the remote are filled in according to the values in the passed in flatpakrepo file.
Note: This is a local configuration object, you must commit changes using
modify_remote()
oradd_remote()
for the changes to take effect.Added in version 1.3.4.
- Parameters:
name – a name
data – The content of a flatpakrepo file
Methods#
- class Remote
- get_appstream_dir(arch: str | None = None) File #
Returns the directory where this remote will store locally cached appstream information for the specified
arch
.- Parameters:
arch – which architecture to fetch (default: current architecture)
- get_appstream_timestamp(arch: str | None = None) File #
Returns the timestamp file that will be updated whenever the appstream information has been updated (or tried to update) for the specified
arch
.- Parameters:
arch – which architecture to fetch (default: current architecture)
- get_default_branch() str #
Returns the default branch configured for the remote.
Added in version 0.6.12.
- get_remote_type() RemoteType #
Get the value of
Remote
:type.Added in version 0.9.8.
- set_collection_id(collection_id: str | None = None) None #
Sets the repository collection ID of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
collection_id – The new collection ID, or
None
to unset
- set_comment(comment: str) None #
Sets the comment of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 1.4.
- Parameters:
comment – The new comment
- set_default_branch(default_branch: str) None #
Sets the default branch configured for this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 0.6.12.
- Parameters:
default_branch – The new default_branch, or
None
to unset
- set_description(description: str) None #
Sets the description of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 1.4.
- Parameters:
description – The new description
- set_disabled(disabled: bool) None #
Sets the disabled config of this remote. See
get_disabled()
.Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
disabled – a bool
- set_filter(filter_path: str) None #
Sets a filter for this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 1.4.
- Parameters:
filter_path – The pathname of the new filter file
- set_gpg_key(gpg_key: Bytes) None #
Sets the trusted gpg key for this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
gpg_key – a
Bytes
with gpg binary key data
- set_gpg_verify(gpg_verify: bool) None #
Sets the gpg_verify config of this remote. See
get_gpg_verify()
.Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
gpg_verify – a bool
- set_homepage(homepage: str) None #
Sets the homepage of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 1.4.
- Parameters:
homepage – The new homepage
- set_icon(icon: str) None #
Sets the homepage of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.Added in version 1.4.
- Parameters:
icon – The new homepage
- set_nodeps(nodeps: bool) None #
Sets the nodeps config of this remote. See
get_nodeps()
.Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
nodeps – a bool
- set_noenumerate(noenumerate: bool) None #
Sets the noenumeration config of this remote. See
get_noenumerate()
.Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
noenumerate – a bool
- set_prio(prio: int) None #
Sets the prio config of this remote. See
get_prio()
.Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
prio – a bool
- set_title(title: str) None #
Sets the repository title of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
title – The new title, or
None
to unset
- set_url(url: str) None #
Sets the repository URL of this remote.
Note: This is a local modification of this object, you must commit changes using
modify_remote()
for the changes to take effect.- Parameters:
url – The new url
Properties#
- class Remote
-
- props.type: RemoteType#
The type of the None singleton.
Added in version 0.9.8.
Fields#
- class Remote
- parent#