2020-02-28 03:15:08 +01:00
|
|
|
/*
|
|
|
|
* 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 { UsageCollectionSetup } from 'src/plugins/usage_collection/server';
|
|
|
|
import { HomeServerPluginSetup } from 'src/plugins/home/server';
|
2020-03-12 11:04:40 +01:00
|
|
|
import { IRouter } from 'kibana/server';
|
2020-02-28 03:15:08 +01:00
|
|
|
import { CloudSetup } from '../../cloud/server';
|
|
|
|
import { SecurityPluginSetup } from '../../security/server';
|
|
|
|
import { PluginSetupContract as FeaturesPluginSetup } from '../../features/server';
|
|
|
|
import { LicensingPluginSetup } from '../../licensing/server';
|
|
|
|
import { SpacesPluginSetup } from '../../spaces/server';
|
2020-03-04 11:14:11 +01:00
|
|
|
import { MlServerLicense } from './lib/license';
|
2020-04-24 13:08:19 +02:00
|
|
|
import { ResolveMlCapabilities } from '../common/types/capabilities';
|
2020-02-28 03:15:08 +01:00
|
|
|
|
|
|
|
export interface LicenseCheckResult {
|
|
|
|
isAvailable: boolean;
|
|
|
|
isActive: boolean;
|
|
|
|
isEnabled: boolean;
|
|
|
|
isSecurityDisabled: boolean;
|
|
|
|
status?: string;
|
|
|
|
type?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SystemRouteDeps {
|
|
|
|
cloud: CloudSetup;
|
2020-03-05 16:06:36 +01:00
|
|
|
spaces?: SpacesPluginSetup;
|
2020-04-24 13:08:19 +02:00
|
|
|
resolveMlCapabilities: ResolveMlCapabilities;
|
|
|
|
}
|
|
|
|
|
2020-02-28 03:15:08 +01:00
|
|
|
export interface PluginsSetup {
|
|
|
|
cloud: CloudSetup;
|
|
|
|
features: FeaturesPluginSetup;
|
|
|
|
home: HomeServerPluginSetup;
|
|
|
|
licensing: LicensingPluginSetup;
|
2020-03-05 16:06:36 +01:00
|
|
|
security?: SecurityPluginSetup;
|
|
|
|
spaces?: SpacesPluginSetup;
|
2020-02-28 03:15:08 +01:00
|
|
|
usageCollection: UsageCollectionSetup;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RouteInitialization {
|
|
|
|
router: IRouter;
|
2020-03-04 11:14:11 +01:00
|
|
|
mlLicense: MlServerLicense;
|
2020-02-28 03:15:08 +01:00
|
|
|
}
|