fuchsia.pkg.resolution

Added: HEAD

PROTOCOLS

PackageResolver

Defined in fuchsia.pkg.resolution/resolver.fidl

An abstract representation of a package resolver.

This is exposed to off-target SDK tooling, including ffx. Changes are subject to the compatibility requirements set forth by those tools.

Resolve

If this method succeeds, and package garbage collection is not triggered in the interim, then subsequent resolves of the same package will not need to download any files. This is useful for pre-fetching large packages.

  • request package_url the absolute package URL for a package. The following link describes the format: https://fuchsia.dev/fuchsia-src/concepts/packages/package_url. URLs with fragments (aka resource paths) are used to indicate files within packages (such as component manifests), not just packages, and so will be rejected.
  • error indicates failure. See ResolveError for values and error scenarios.

Request

NameType
payload PackageResolverResolveRequest

Response

NameType
payload PackageResolver_Resolve_Result

ENUMS

ResolveError flexible

Type: int32

Defined in fuchsia.pkg.resolution/resolver.fidl

Error codes for PackageResolver operations.

NameValueDescription
1

The resolver encountered an otherwise unspecified error while handling the request.

2

The resolver does not have permission to fetch a package blob.

3

Some unspecified error during I/O.

4

The package blob does not exist.

5

The package does not exist.

6

The resolver does not know about the repo.

7

There is no space available to store the package or metadata.

8

The resolver is currently unable to fetch a package blob.

9

The resolver is currently unable to fetch a repository's metadata.

10

The package_url provided to resolver is invalid.

11

The context provided to resolver is invalid.

TABLES

PackageResolverResolveRequest resource

Defined in fuchsia.pkg.resolution/resolver.fidl

OrdinalFieldTypeDescription
package_url string:4096

ResolveResult resource

Defined in fuchsia.pkg.resolution/resolver.fidl

A ResolveResult encapsulates the result of PackageResolver operations.

OrdinalFieldTypeDescription

UNIONS

PackageResolver_Resolve_Result strict resource

Defined in fuchsia.pkg.resolution/resolver.fidl

OrdinalVariantTypeDescription
response ResolveResult
err ResolveError
framework_err internal