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.
57 lines
1.6 KiB
57 lines
1.6 KiB
9 years ago
|
/// <reference path="../../includes.d.ts" />
|
||
|
declare module Kubernetes {
|
||
|
var hostPorts: any[];
|
||
|
/**
|
||
|
* Sorts the the ip field
|
||
|
*
|
||
|
* @param ip the ip such as '10.1.2.13'
|
||
|
* @returns {any}
|
||
|
*/
|
||
|
function sortByPodIp(ip: any): any;
|
||
|
function ramdomPort(): number;
|
||
|
function getRandomString(len: number): string;
|
||
|
class resourceRCTemplate {
|
||
|
image: string;
|
||
|
names: string[];
|
||
|
createRC(Obj: any): {
|
||
|
"apiVersion": string;
|
||
|
"kind": string;
|
||
|
"metadata": {
|
||
|
"name": any;
|
||
|
"labels": {
|
||
|
"style": string;
|
||
|
"status": string;
|
||
|
};
|
||
|
};
|
||
|
"spec": {
|
||
|
replicas: any;
|
||
|
"template": {
|
||
|
"metadata": {
|
||
|
"labels": any;
|
||
|
};
|
||
|
"spec": {
|
||
|
"terminationGracePeriodSeconds": number;
|
||
|
"containers": any[];
|
||
|
"volumes": any[];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
createVolumeMounts(): any[];
|
||
|
createVolumes(rootPath: string): any[];
|
||
|
createContainers(Obj: any): any[];
|
||
|
createTemplate(Obj: any): {
|
||
|
"metadata": {
|
||
|
"labels": any;
|
||
|
};
|
||
|
"spec": {
|
||
|
"terminationGracePeriodSeconds": number;
|
||
|
"containers": any[];
|
||
|
"volumes": any[];
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
function findLabelValue(value: string, key: string): string;
|
||
|
function labelToChinese(labels: any): {};
|
||
|
}
|