check-kubernetes-cluster-fixed
Version:
MCP server to check Kubernetes cluster health and status
57 lines (56 loc) • 1.61 kB
TypeScript
interface Header {
key: string;
value: string;
}
interface CheckURLParams {
host: string;
path?: string;
headers?: Header[];
certFile?: string;
keyFile?: string;
retCode: number;
}
interface CheckURLWithIPParams {
ip: string;
host: string;
protocol?: string;
path?: string;
headers?: Header[];
certFile?: string;
keyFile?: string;
retCode: number;
}
interface CheckBodyParams {
host: string;
path?: string;
headers?: Header[];
body?: string;
certFile?: string;
keyFile?: string;
method?: string;
data?: any;
match?: boolean;
}
interface CheckHeadersParams {
host: string;
path?: string;
headers?: Header[];
certFile?: string;
keyFile?: string;
expectedHeaders: Header[];
}
interface CheckWithMethodParams {
host: string;
path: string;
headers?: Header[];
method?: string;
certFile?: string;
keyFile?: string;
retCode: number;
}
export declare function checkURL({ host, path, headers, certFile, keyFile, retCode }: CheckURLParams): any;
export declare function checkURLWithIP({ ip, host, protocol, path, headers, certFile, keyFile, retCode }: CheckURLWithIPParams): any;
export declare function checkBody({ host, path, headers, body, certFile, keyFile, method, data, match }: CheckBodyParams): any;
export declare function checkHeaders({ host, path, headers, certFile, keyFile, expectedHeaders }: CheckHeadersParams): any;
export declare function checkWithMethod({ host, path, headers, method, certFile, keyFile, retCode }: CheckWithMethodParams): any;
export {};