SealSkin

Remote

A PRoot Apps remote: where its metadata is served and the registry its apps are tags of.

Attributes

attributekeystr

The remote as records and listings name it: owner/repo in lower case, or the base URL and the registry one space apart.

attributemetadatastr

URL of the metadata/ directory, holding metadata.yml and img/.

attributeregistrystr

Image prefix the apps are tags of, ghcr.io/owner/repo.

attributemetadata_urlstr

Return the URL of the metadata file.

attributedefaultbool

Whether short names belong to this remote: it is proot_apps_remote, whose registry default_repo names.

Functions

constructor__init__(key, metadata, registry) -> None
paramkeystr
parammetadatastr
paramregistrystr

Returns

None
funcparse(remote) -> Remote

Read a remote from a GitHub owner/repo, or a base URL and a registry separated by a space.

paramremotestr

Returns

app.prootapps.Remote
funcicon_url(icon) -> str

Return the URL of an icon the metadata names.

paramiconstr

Returns

str
funcimage(name) -> str

Return the image reference of an app.

paramnamestr

Returns

str