kibana/x-pack/plugins/actions/server/index.ts
Mike Côté 3da8a76fc2
Disable action plugin functionality when ESO plugin is using an ephemeral encryption key (#56906)
* Disable actions client when ESO using generated key

* Add test for getActionsClientWithRequest

* Add other part to plugin.test.ts

* Cleanup tests a bit

* Cleanup tests

* plugin.test.ts cleanup

* Add warning logs on setup

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 13:49:16 -05:00

22 lines
850 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { PluginInitializerContext } from '../../../../src/core/server';
import { ActionsPlugin } from './plugin';
import { configSchema } from './config';
import { ActionsClient as ActionsClientClass } from './actions_client';
export type ActionsClient = PublicMethodsOf<ActionsClientClass>;
export { ActionsPlugin, ActionResult, ActionTypeExecutorOptions, ActionType } from './types';
export { PluginSetupContract, PluginStartContract } from './plugin';
export const plugin = (initContext: PluginInitializerContext) => new ActionsPlugin(initContext);
export const config = {
schema: configSchema,
};