blob: b89842a3b34caa4880965a6c418a901a7dd0526e [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.sys2;
using fuchsia.component;
protocol StorageAdmin {
/// Opens the isolated directory for the given component. The open request will fail if
/// the given component's storage has not been provisioned yet.
OpenComponentStorage(string:fuchsia.component.MAX_MONIKER_LENGTH relative_moniker, uint32 flags, uint32 mode, request<> object);
/// Deletes the contents of the storage for this component. Does not delete the component's
/// subdirectory itself from the backing directory.
DeleteComponentStorage(string:fuchsia.component.MAX_MONIKER_LENGTH relative_moniker) -> () error fuchsia.component.Error;