aggregation-platform/d.ts/kubernetes/ts/kubernetesModel.d.ts

55 lines
1.8 KiB
TypeScript
Raw Normal View History

2016-06-28 10:22:53 +08:00
/// <reference path="../../includes.d.ts" />
/// <reference path="kubernetesPlugin.d.ts" />
declare module Kubernetes {
var FABRIC8_PROJECT_JSON: string;
/**
* The object which keeps track of all the pods, replication controllers, services and their associations
*/
class KubernetesModelService {
kubernetes: KubernetesState;
apps: any[];
services: any[];
replicationcontrollers: any[];
replicationControllers: Array<any>;
pods: any[];
hosts: any[];
namespaces: Array<string>;
routes: any[];
templates: any[];
redraw: boolean;
resourceVersions: {};
podsByHost: {};
servicesByKey: {};
replicationControllersByKey: {};
podsByKey: {};
appInfos: any[];
appViews: any[];
appFolders: any[];
fetched: boolean;
showRunButton: boolean;
buildconfigs: any[];
events: any[];
workspaces: any[];
projects: any[];
project: any;
serviceApps: Array<any>;
$keepPolling(): boolean;
orRedraw(flag: any): void;
getService(namespace: any, id: any): any;
getReplicationController(namespace: any, id: any): any;
getPod(namespace: any, id: any): any;
podsForNamespace(namespace?: any): any[];
getBuildConfig(name: any): any;
getProject(name: any, ns?: any): any;
setProject(buildConfig: any): void;
/**
* Returns the current selected namespace or the default namespace
*/
currentNamespace(): any;
protected updateIconUrlAndAppInfo(entity: any, nameField: string): void;
maybeInit(): void;
protected updateApps(): void;
protected discoverPodConnections(entity: any): void;
}
}