You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
/// <reference path="../../includes.d.ts" />
|
|
declare module Service {
|
|
var pluginName: string;
|
|
var log: Logging.Logger;
|
|
/**
|
|
* Used to specify whether the "service" URL should be polled for services using kubernetes or kubernetes-like service discover.
|
|
* For more details see: https://github.com/hawtio/hawtio/blob/master/docs/Services.md
|
|
*/
|
|
var pollServices: boolean;
|
|
/**
|
|
* Returns true if there is a service available for the given ID or false
|
|
*/
|
|
function hasService(ServiceRegistry: any, serviceName: string): boolean;
|
|
/**
|
|
* Returns the service for the given service name (ID) or null if it cannot be found
|
|
*
|
|
* @param ServiceRegistry
|
|
* @param serviceName
|
|
* @return {null}
|
|
*/
|
|
function findService(ServiceRegistry: any, serviceName: string): any;
|
|
/**
|
|
* Returns the service link for the given service name
|
|
*
|
|
* @param ServiceRegistry
|
|
* @param serviceName
|
|
* @return {null}
|
|
*/
|
|
function serviceLink(ServiceRegistry: any, serviceName: string): string;
|
|
}
|