template <>

class WireSyncClientImpl

Defined at line 7041 of file fidling/gen/sdk/fidl/fuchsia.pkg/fuchsia.pkg/cpp/fidl/fuchsia.pkg/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_pkg::RepositoryManager>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_pkg::RepositoryManager::Add> Add (::fuchsia_pkg::wire::RepositoryConfig repo)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_pkg::RepositoryManager::Remove> Remove (::fidl::StringView repo_url)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_pkg::RepositoryManager::AddMirror> AddMirror (::fidl::StringView repo_url, ::fuchsia_pkg::wire::MirrorConfig mirror)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_pkg::RepositoryManager::RemoveMirror> RemoveMirror (::fidl::StringView repo_url, ::fidl::StringView mirror_url)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::OneWayStatus List (::fidl::ServerEnd< ::fuchsia_pkg::RepositoryIterator> && iterator)

Returns an iterator over all repositories.

+ request `iterator` a request for an iterator.

Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.