Part of lp.snappy.interfaces.snap View In Hierarchy
Known subclasses: lp.snappy.interfaces.webservice.ISnap
ISnap
attributes that require launchpad.View permission.Int | id | Undocumented |
Attribute | source | The source branch for this snap package (VCS-agnostic). |
Attribute | available_processors | The architectures that are available to be enabled or disabled for this snap package. |
Method | setProcessors | Set the architectures for which the snap package should be built. |
Method | getAllowedArchitectures | Return all distroarchseries that this package can build for. |
Method | requestBuild | Request that the snap package be built. |
Method | requestBuilds | Request that the snap package be built for relevant architectures. |
Method | requestBuildsFromJob | Synchronous part of Snap.requestBuilds . |
Method | getBuildRequest | Get an asynchronous build request by ID. |
Method | getBuildSummariesForSnapBuildIds | Return a dictionary containing a summary of the build statuses. |
Method | getBuildSummaries | Return a dictionary containing a summary of build information. |
Returns | Sequence of IDistroArchSeries instances. |
Parameters | requester | The person requesting the build. |
archive | The IArchive to associate the build with. | |
distro_arch_series | The architecture to build for. | |
The pocket that should be targeted. | ||
channels | A dictionary mapping snap names to channels to use for this build. | |
build_request | The ISnapBuildRequest job being processed,
if any. | |
Returns | ISnapBuild . |
This is an asynchronous operation; once the operation has finished, the resulting build request's C{status} will be "Completed" and its C{builds} collection will return the resulting builds.
Parameters | requester | The person requesting the builds. |
archive | The IArchive to associate the builds with. | |
The pocket that should be targeted. | ||
channels | A dictionary mapping snap names to channels to use for these builds. | |
Returns | An ISnapBuildRequest . |
Snap.requestBuilds
.
Request that the snap package be built for relevant architectures.
Parameters | requester | The person requesting the builds. |
archive | The IArchive to associate the builds with. | |
The pocket that should be targeted. | ||
channels | A dictionary mapping snap names to channels to use for these builds. | |
architectures | If not None, limit builds to architectures with these architecture tags (in addition to any other applicable constraints). | |
allow_failures | If True, log exceptions other than "already pending" from individual build requests; if False, raise them to the caller. | |
fetch_snapcraft_yaml | If True, fetch snapcraft.yaml from the appropriate branch or repository and use it to decide which builds to request; if False, fall back to building for all supported architectures. | |
build_request | The ISnapBuildRequest job being processed,
if any. | |
logger | An optional logger. | |
Returns | A sequence of ISnapBuild instances. | |
Raises | CannotRequestAutoBuilds | if fetch_snapcraft_yaml is False and self.distro_series is not set. |
Parameters | job_id | The ID of the build request. |
Returns | ISnapBuildRequest . |
Parameters | snap_build_ids | A list of snap build IDs. |
source_ids | (type: list) | |
Returns | A dict consisting of the overall status summaries for the given snap builds. |
Parameters | request_ids | A list of snap build request IDs. |
build_ids | A list of snap build IDs. | |
user | The IPerson requesting this information. | |
Returns | A dict of {"requests", "builds"}, consisting of the overall status summaries for the given snap build requests and snap builds respectively. |