@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
15 lines (13 loc) • 483 B
JavaScript
let _ = require('lodash');
let Plugin = require('./Plugin');
let { basename, join } = require('path');
module.exports = class PluginApi {
constructor(kibana, pluginPath) {
this.config = kibana.server.config();
this.rootDir = kibana.rootDir;
this.package = require(join(pluginPath, 'package.json'));
this.autoload = require('../../ui/autoload');
this.Plugin = Plugin.scoped(kibana, pluginPath, this.package);
this.mixin = _.bindKey(kibana, 'mixin');
}
};