class StorageAdmin

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

Public Members

static const char[] Name_

Public Methods

void ~StorageAdmin ()
void OpenStorage (::std::string relative_moniker, ::fidl::InterfaceRequest< ::fuchsia::io::Node> object, OpenStorageCallback callback)

Opens the isolated directory for the given component. The open request will provision

the storage if it hasn't been already.

void ListStorageInRealm (::std::string relative_moniker, ::fidl::InterfaceRequest< ::fuchsia::sys2::StorageIterator> iterator, ListStorageInRealmCallback callback)

Lists the descendant components under the specified realm that use the storage

capability.

Returns INSTANCE_NOT_FOUND if the realm does not exist, and INVALID_ARGS if

|relative_moniker| is malformed.

void OpenComponentStorageById (::std::string id, ::fidl::InterfaceRequest< ::fuchsia::io::Node> object, OpenComponentStorageByIdCallback callback)

Opens the isolated directory for the given storage ID. The open request will provision

the storage if it hasn't been already.

void DeleteComponentStorage (::std::string relative_moniker, DeleteComponentStorageCallback callback)

Deletes the contents of the storage for this component. The moniker can be a regular

moniker (ie, "foo/bar") or a moniker with internal instance IDs (unusual, ie, "foo:0/bar:0").

Preserves the component's subdirectory itself within the storage backing directory.

void GetStatus (GetStatusCallback callback)

Get the current status of the storage.

void DeleteAllStorageContents (DeleteAllStorageContentsCallback callback)

Deletes the contents of all the storage. Storage directories are retained so any components

using storage will be able to continue using it to create new files and directories.

Returns fuchsia.component.Error::INTERNAL only if no storage at all could be cleared.

Returns successfully even if some errors happen during the deletion progress.