mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
5636c331a2
commit
31b4ae44b5
6 changed files with 14 additions and 3 deletions
|
@ -10,5 +10,6 @@
|
|||
elasticsearch: {
|
||||
adminClient$: Observable<ClusterClient>;
|
||||
dataClient$: Observable<ClusterClient>;
|
||||
createClient: (type: string, clientConfig?: Partial<ElasticsearchClientConfig>) => ClusterClient;
|
||||
};
|
||||
```
|
||||
|
|
|
@ -16,6 +16,6 @@ export interface CoreSetup
|
|||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [elasticsearch](./kibana-plugin-server.coresetup.elasticsearch.md) | <code>{</code><br/><code> adminClient$: Observable<ClusterClient>;</code><br/><code> dataClient$: Observable<ClusterClient>;</code><br/><code> }</code> | |
|
||||
| [elasticsearch](./kibana-plugin-server.coresetup.elasticsearch.md) | <code>{</code><br/><code> adminClient$: Observable<ClusterClient>;</code><br/><code> dataClient$: Observable<ClusterClient>;</code><br/><code> createClient: (type: string, clientConfig?: Partial<ElasticsearchClientConfig>) => ClusterClient;</code><br/><code> }</code> | |
|
||||
| [http](./kibana-plugin-server.coresetup.http.md) | <code>{</code><br/><code> registerOnPreAuth: HttpServiceSetup['registerOnPreAuth'];</code><br/><code> registerAuth: HttpServiceSetup['registerAuth'];</code><br/><code> registerOnPostAuth: HttpServiceSetup['registerOnPostAuth'];</code><br/><code> basePath: HttpServiceSetup['basePath'];</code><br/><code> createNewServer: HttpServiceSetup['createNewServer'];</code><br/><code> isTlsEnabled: HttpServiceSetup['isTlsEnabled'];</code><br/><code> }</code> | |
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import { ElasticsearchConfig } from './elasticsearch_config';
|
|||
import { ElasticsearchService, ElasticsearchServiceSetup } from './elasticsearch_service';
|
||||
|
||||
const createSetupContractMock = () => {
|
||||
const setupContract: ElasticsearchServiceSetup = {
|
||||
const setupContract: jest.Mocked<ElasticsearchServiceSetup> = {
|
||||
legacy: {
|
||||
config$: new BehaviorSubject({} as ElasticsearchConfig),
|
||||
},
|
||||
|
|
|
@ -36,7 +36,11 @@
|
|||
*/
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { ClusterClient, ElasticsearchServiceSetup } from './elasticsearch';
|
||||
import {
|
||||
ClusterClient,
|
||||
ElasticsearchClientConfig,
|
||||
ElasticsearchServiceSetup,
|
||||
} from './elasticsearch';
|
||||
import { HttpServiceSetup, HttpServiceStart } from './http';
|
||||
import { PluginsServiceSetup, PluginsServiceStart } from './plugins';
|
||||
|
||||
|
@ -115,6 +119,10 @@ export interface CoreSetup {
|
|||
elasticsearch: {
|
||||
adminClient$: Observable<ClusterClient>;
|
||||
dataClient$: Observable<ClusterClient>;
|
||||
createClient: (
|
||||
type: string,
|
||||
clientConfig?: Partial<ElasticsearchClientConfig>
|
||||
) => ClusterClient;
|
||||
};
|
||||
http: {
|
||||
registerOnPreAuth: HttpServiceSetup['registerOnPreAuth'];
|
||||
|
|
|
@ -115,6 +115,7 @@ export function createPluginSetupContext<TPlugin, TPluginDependencies>(
|
|||
elasticsearch: {
|
||||
adminClient$: deps.elasticsearch.adminClient$,
|
||||
dataClient$: deps.elasticsearch.dataClient$,
|
||||
createClient: deps.elasticsearch.createClient,
|
||||
},
|
||||
http: {
|
||||
registerOnPreAuth: deps.http.registerOnPreAuth,
|
||||
|
|
|
@ -89,6 +89,7 @@ export interface CoreSetup {
|
|||
elasticsearch: {
|
||||
adminClient$: Observable<ClusterClient>;
|
||||
dataClient$: Observable<ClusterClient>;
|
||||
createClient: (type: string, clientConfig?: Partial<ElasticsearchClientConfig>) => ClusterClient;
|
||||
};
|
||||
// (undocumented)
|
||||
http: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue