pub struct ManifestEntryRule {
pub manifests: String,
pub format: ManifestFormat,
pub when: BTreeMap<ManifestFieldPath, ManifestCondition>,
pub entries: Vec<ManifestSeedRule>,
}Expand description
A rule that seeds entry points DERIVED from framework manifest files.
For every file matching manifests (a recursive glob) that passes the
manifest-level when gate, each rule in entries is resolved relative to
the manifest’s directory (with ${dotted.field} interpolation) into an entry
point. Seeded entries use the owning plugin’s entryPointRole.
{
"manifests": "**/kibana.jsonc",
"when": { "type": "plugin" },
"entries": [
{ "path": "public/index.{ts,tsx}", "when": { "plugin.browser": true } },
{ "path": "server/index.{ts,tsx}", "when": { "plugin.server": true } },
{ "path": "${plugin.extraPublicDirs}/index.{ts,tsx}" }
]
}Fields§
§manifests: StringRecursive glob selecting the manifest files to read (e.g. **/kibana.jsonc).
format: ManifestFormatManifest format. Defaults to jsonc (which also parses plain JSON).
when: BTreeMap<ManifestFieldPath, ManifestCondition>Manifest-level gate: a map of field path to an equality expectation or
an explicit exists predicate. Paths use dotted object keys and may
traverse arrays with [*]. ALL entries must match; a wildcard equality
matches when any yielded value equals the expectation. An empty map
matches every manifest.
entries: Vec<ManifestSeedRule>Entry rules seeded per matching manifest.
Trait Implementations§
Source§impl Clone for ManifestEntryRule
impl Clone for ManifestEntryRule
Source§impl Debug for ManifestEntryRule
impl Debug for ManifestEntryRule
Source§impl<'de> Deserialize<'de> for ManifestEntryRule
impl<'de> Deserialize<'de> for ManifestEntryRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ManifestEntryRule
impl JsonSchema for ManifestEntryRule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more