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
Name | Type |
---|---|
payload |
PackageResolverResolveRequest
|
Response
Name | Type |
---|---|
payload |
PackageResolver_Resolve_Result
|
ENUMS
ResolveError flexible
Type: int32
Defined in fuchsia.pkg.resolution/resolver.fidl
Error codes for PackageResolver operations.
Name | Value | Description |
---|---|---|
INTERNAL |
1 |
The resolver encountered an otherwise unspecified error while handling the request. |
ACCESS_DENIED |
2 |
The resolver does not have permission to fetch a package blob. |
IO |
3 |
Some unspecified error during I/O. |
BLOB_NOT_FOUND |
4 |
The package blob does not exist. |
PACKAGE_NOT_FOUND |
5 |
The package does not exist. |
REPO_NOT_FOUND |
6 |
The resolver does not know about the repo. |
NO_SPACE |
7 |
There is no space available to store the package or metadata. |
UNAVAILABLE_BLOB |
8 |
The resolver is currently unable to fetch a package blob. |
UNAVAILABLE_REPO_METADATA |
9 |
The resolver is currently unable to fetch a repository's metadata. |
INVALID_URL |
10 |
The |
INVALID_CONTEXT |
11 |
The |
TABLES
PackageResolverResolveRequest resource
Defined in fuchsia.pkg.resolution/resolver.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
package_url |
string:4096
|
ResolveResult resource
Defined in fuchsia.pkg.resolution/resolver.fidl
A ResolveResult encapsulates the result of PackageResolver operations.
Ordinal | Field | Type | Description |
---|
UNIONS
PackageResolver_Resolve_Result strict resource
Defined in fuchsia.pkg.resolution/resolver.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
ResolveResult
|
|
2 |
err |
ResolveError
|
|
3 |
framework_err |
internal
|