template <>

class NaturalClientImpl

Defined at line 2626 of file fidling/gen/sdk/fidl/fuchsia.pkg/fuchsia.pkg/cpp/fidl/fuchsia.pkg/cpp/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_pkg::RepositoryManager::Add> Add (const ::fidl::Request< ::fuchsia_pkg::RepositoryManager::Add> & request)

Adds a repository. This will overwrite the repository if it already exists.

+ request `repo` a repository to add to the resolver.

* error a zx_status value indicating failure. One of the following:

* `ZX_ERR_ACCESS_DENIED` if editing repositories is permanently disabled.

* `ZX_ERR_ALREADY_EXISTS` if the repository already exists.

* `ZX_ERR_INVALID_ARGS` if the repository is malformed.

::fidl::internal::NaturalThenable< ::fuchsia_pkg::RepositoryManager::Remove> Remove (const ::fidl::Request< ::fuchsia_pkg::RepositoryManager::Remove> & request)

Removes a repository.

Removing a repository will prevent future packages from being cached from this repository,

but in-flight downloads may not be interrupted.

+ request `repo_url` the URL of the repository we want to remove.

* error a zx_status value indicating failure. One of the following:

* `ZX_ERR_ACCESS_DENIED` if editing repositories is permanently disabled or the

`repo_url` matches a static repository.

* `ZX_ERR_INVALID_ARGS` if the `repo_url` is malformed.

* `ZX_ERR_NOT_FOUND` if the repository does not exist.

::fidl::internal::NaturalThenable< ::fuchsia_pkg::RepositoryManager::AddMirror> AddMirror (const ::fidl::Request< ::fuchsia_pkg::RepositoryManager::AddMirror> & request)

Adds a mirror to a repository. This will overwrite the mirror if it already exists.

+ request `repo_url` the URL of the repository to add the mirror to.

+ request `mirror` the mirror config used to add the mirror.

* error a zx_status value indicating failure. One of the following:

* `ZX_ERR_ALREADY_EXISTS` if the mirror for this repository already exists.

* `ZX_ERR_INVALID_ARGS` if the `repo_url` or the `mirror` is malformed.

* `ZX_ERR_NOT_FOUND` if the repository does not exist.

::fidl::internal::NaturalThenable< ::fuchsia_pkg::RepositoryManager::RemoveMirror> RemoveMirror (const ::fidl::Request< ::fuchsia_pkg::RepositoryManager::RemoveMirror> & request)

Removes a mirror from a repository.

Removing a mirror will prevent future packages from being cached from that mirror, but

in-flight downloads may not be interrupted.

+ request `repo_url` the URL of the mirror's repository.

+ request `mirror_url` the URL of the mirror we want to remove.

* error a zx_status value indicating failure. One of the following:

* `ZX_ERR_INVALID_ARGS` if the `repo_url` or the `mirror_url` is malformed.

* `ZX_ERR_NOT_FOUND` if the repository or mirror does not exist.

::fit::result< ::fidl::OneWayError> List (::fidl::Request< ::fuchsia_pkg::RepositoryManager::List> request)

Returns an iterator over all repositories.

+ request `iterator` a request for an iterator.