blob: a6e423417d86a2954d6d108c32cfa063f91ff6e6 [file] [log] [blame]
// Copyright 2022 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.
// This shard is meant to contain stuff that is meant to be shared across all flavors of the
// archivist.
{
include: [
"//src/diagnostics/archivist/meta/config.shard.cml",
"inspect/client.shard.cml",
],
program: {
runner: "elf",
lifecycle: { stop_event: "notify" },
},
capabilities: [
{
protocol: [
"fuchsia.diagnostics.ArchiveAccessor",
"fuchsia.diagnostics.host.ArchiveAccessor",
"fuchsia.diagnostics.LogSettings",
"fuchsia.inspect.InspectSink",
"fuchsia.logger.Log",
"fuchsia.logger.LogSink",
],
},
],
use: [
{
event_stream: [ "capability_requested" ],
from: "parent",
path: "/events/log_sink_requested_event_stream",
filter: { name: "fuchsia.logger.LogSink" },
},
{
event_stream: [ "capability_requested" ],
from: "parent",
path: "/events/inspect_sink_requested_event_stream",
filter: { name: "fuchsia.inspect.InspectSink" },
},
{
event_stream: [ "directory_ready" ],
from: "parent",
path: "/events/diagnostics_ready_event_stream",
filter: { name: "diagnostics" },
},
{
protocol: [ "fuchsia.tracing.provider.Registry" ],
availability: "optional",
},
],
expose: [
{
protocol: [
"fuchsia.diagnostics.ArchiveAccessor",
"fuchsia.diagnostics.host.ArchiveAccessor",
"fuchsia.diagnostics.LogSettings",
"fuchsia.inspect.InspectSink",
"fuchsia.logger.Log",
"fuchsia.logger.LogSink",
],
from: "self",
},
],
}