class RealmQuery

Defined at line 12792 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/hlcpp/fuchsia/sys2/cpp/fidl.h

Offers detailed introspection into component instances under a realm.

Public Members

static const char[] Name_

Public Methods

void ~RealmQuery ()
void GetInstance (::std::string moniker, GetInstanceCallback callback)

Gets an instance identified by its moniker.

void GetResolvedDeclaration (::std::string moniker, GetResolvedDeclarationCallback callback)

Gets the manifest of an instance identified by its moniker.

The manifest is encoded in its standalone persistable format per RFC-0120 and

is sent across using an iterator. Some manifests are too large to send over a

Zircon channel and we can't use a VMO because we need an approach that is

compatible with overnet.

void ResolveDeclaration (::std::string parent, ::fuchsia::sys2::ChildLocation child_location, ::std::string url, ResolveDeclarationCallback callback)

Gets the manifest of a component URL as if it were a child of the specified parent

without actually creating or starting that component.

The manifest is encoded in its standalone persistable format per RFC-0120 and

is sent across using an iterator. Some manifests are too large to send over a

Zircon channel and we can't use a VMO because we need an approach that is

compatible with overnet.

void GetStructuredConfig (::std::string moniker, GetStructuredConfigCallback callback)

Gets the structured config of an instance identified by its moniker.

void GetAllInstances (GetAllInstancesCallback callback)

Returns an iterator over all component instances in this realm and instances within resolved

children, recursively. Unresolved child components will be included in this list, but

children of unresolved children will not be.

void ConstructNamespace (::std::string moniker, ConstructNamespaceCallback callback)

Constructs the namespace of an instance as determined by its use declarations.

This is usually identical to what would be given to the component's runner on

component start time, unless extended by

`fuchsia.component/StartChildArgs.namespace_entries`.

void OpenDirectory (::std::string moniker, ::fuchsia::sys2::OpenDirType dir_type, ::fidl::InterfaceRequest< ::fuchsia::io::Directory> object, OpenDirectoryCallback callback)

Opens the specified directory in an instance.

void ConnectToStorageAdmin (::std::string moniker, ::std::string storage_name, ::fidl::InterfaceRequest< ::fuchsia::sys2::StorageAdmin> server_end, ConnectToStorageAdminCallback callback)

Connects to the StorageAdmin protocol of a storage declared by an instance.

Deprecated, use OpenStorageAdmin instead.

void OpenStorageAdmin (::std::string moniker, ::std::string storage_name, ::fidl::InterfaceRequest< ::fuchsia::component::StorageAdmin> server_end, OpenStorageAdminCallback callback)

Connects to the StorageAdmin protocol of a storage declared by an instance.