Part of lp.snappy.interfaces.webservice View In Hierarchy
Method | new | Create an ISnap . |
Method | exists | Check to see if a matching snap exists. |
Method | isValidPrivacy | Whether or not the privacy context is valid. |
Method | getByName | Return the appropriate ISnap for the given objects. |
Method | findByOwner | Return all snap packages with the given owner . |
Method | findByPerson | Return all snap packages relevant to person . |
Method | findByProject | Return all snap packages for the given project. |
Method | findByBranch | Return all snap packages for the given Bazaar branch. |
Method | findByGitRepository | Return all snap packages for the given Git repository. |
Method | findByGitRef | Return all snap packages for the given Git reference. |
Method | findByContext | Return all snap packages for the given context. |
Method | findByURL | Return all snap packages that build from the given URL. |
Method | findByURLPrefix | Return all snap packages that build from a URL with this prefix. |
Method | findByURLPrefixes | Return all snap packages that build from a URL with any of these |
Method | findByStoreName | Return all snap packages with the given store package name. |
Method | preloadDataForSnaps | Load the data related to a list of snap packages. |
Method | getSnapcraftYaml | Fetch a package's snapcraft.yaml from code hosting, if possible. |
Method | makeAutoBuilds | Create and return automatic builds for stale snap packages. |
Method | detachFromBranch | Detach all snap packages from the given Bazaar branch. |
Method | detachFromGitRepository | Detach all snap packages from the given Git repository. |
Method | empty_list | Return an empty collection of snap packages. |
ISnap
.ISnap
for the given objects.owner
.person
.
This returns snap packages for Bazaar or Git branches owned by
person
, or where person
is the owner of the snap package.
Parameters | person | An IPerson . |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
Parameters | project | An IProduct . |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
Parameters | repository | An IGitRepository . |
paths | If not None, only return snap packages for one of these Git reference paths. |
Parameters | context | An IPerson , IProduct, `IBranch ,
IGitRepository , or IGitRef . |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. | |
order_by_date | If True, order packages by descending modification date. | |
Raises | BadSnapSearchContext | if the context is not understood. |
This currently only works for packages that build directly from a URL, rather than being linked to a Bazaar branch or Git repository hosted in Launchpad.
Parameters | url | A URL. |
owner | Only return packages owned by this user. | |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
This currently only works for packages that build directly from a URL, rather than being linked to a Bazaar branch or Git repository hosted in Launchpad.
Parameters | url_prefix | A URL prefix. |
owner | Only return packages owned by this user. | |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
This currently only works for packages that build directly from a URL, rather than being linked to a Bazaar branch or Git repository hosted in Launchpad.
Parameters | url_prefixes | A list of URL prefixes. |
owner | Only return packages owned by this user. | |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
Parameters | store_name | A registered store package name. |
owner | Only return packages owned by this user. | |
visible_by_user | If not None, only return packages visible by this user; otherwise, only return publicly-visible packages. |
Parameters | context | Either an ISnap or the source branch for a snap
package. |
logger | An optional logger. | |
Returns | The package's parsed snapcraft.yaml. | |
Raises | MissingSnapcraftYaml | if this package has no snapcraft.yaml. |
CannotFetchSnapcraftYaml | if it was not possible to fetch snapcraft.yaml from the code hosting backend for some other reason. | |
CannotParseSnapcraftYaml | if the fetched snapcraft.yaml cannot be parsed. |
Parameters | logger | An optional logger. |
After this, any snap packages that previously used this branch will have no source and so cannot dispatch new builds.