OSTree.Remote

Fields

None

Methods

get_name ()

get_url ()

ref ()

unref ()

Details

class OSTree.Remote

This represents the configuration for a single remote repository. Currently, remotes can only be passed around as (reference counted) opaque handles. In future, more API may be added to create and interrogate them.

New in version 2018.6.

get_name()
Returns:

remote’s name

Return type:

str

Get the human-readable name of the remote. This is what the user configured, if the remote was explicitly configured; and will otherwise be a stable, arbitrary, string.

New in version 2018.6.

get_url()
Returns:

the remote’s URL

Return type:

str or None

Get the URL from the remote.

New in version 2018.6.

ref()
Returns:

a copy of self, for convenience

Return type:

OSTree.Remote

Increase the reference count on the given self.

New in version 2018.6.

unref()

Decrease the reference count on the given self and free it if the reference count reaches 0.

New in version 2018.6.