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.
aggregation-platform/plugins/kubernetes/ts/oracleStatusModel.ts

28 lines
785 B

9 years ago
/// <reference path="../../includes.ts"/>
/// <reference path="kubernetesPlugin.ts"/>
module Kubernetes{
export class oracleModelService{
public oraclecontrollers = [] ;
public get oracleControllers(): Array<any>{
return this.oraclecontrollers;
}
public set oracleControllers(oracleControllers: Array<any>){
this.oraclecontrollers = oracleControllers;
}
public findIndexOfOracleControllers(oracleControllers: Array<any>, name: string): number{
for(var index in oracleControllers)
if(oracleControllers[index].name === name)
return index;
return -1;
}
}
_module.factory('OracleStatusModel', [() => {
return new oracleModelService();
}]);
}