-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
28 lines (22 loc) · 831 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import { schema, TypeOf } from "@osd/config-schema";
import { PluginConfigDescriptor, PluginInitializerContext } from "../../../src/core/server";
import { IndexPatternManagementPlugin } from "./plugin";
export const configSchema = schema.object({
enabled: schema.boolean({ defaultValue: true }),
});
export type IndexManagementPluginConfigType = TypeOf<typeof configSchema>;
export const config: PluginConfigDescriptor<IndexManagementPluginConfigType> = {
exposeToBrowser: {
enabled: true,
},
schema: configSchema,
};
export interface IndexManagementPluginSetup {}
export interface IndexManagementPluginStart {}
export function plugin(initializerContext: PluginInitializerContext) {
return new IndexPatternManagementPlugin();
}