Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/gcp-metadata/build/src/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/** * Copyright 2018 Google LLC * * Distributed under MIT license. * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /// <reference types="node" /> import { OutgoingHttpHeaders } from 'http'; export declare const BASE_PATH = "/computeMetadata/v1"; export declare const HOST_ADDRESS = "http://169.254.169.254"; export declare const SECONDARY_HOST_ADDRESS = "http://metadata.google.internal."; export declare const HEADER_NAME = "Metadata-Flavor"; export declare const HEADER_VALUE = "Google"; export declare const HEADERS: Readonly<{ "Metadata-Flavor": "Google"; }>; export interface Options { params?: { [index: string]: string; }; property?: string; headers?: OutgoingHttpHeaders; } /** * Obtain metadata for the current GCE instance */ export declare function instance<T = any>(options?: string | Options): Promise<T>; /** * Obtain metadata for the current GCP Project. */ export declare function project<T = any>(options?: string | Options): Promise<T>; /** * Determine if the metadata server is currently available. */ export declare function isAvailable(): Promise<boolean>; /** * reset the memoized isAvailable() lookup. */ export declare function resetIsAvailableCache(): void; /** * A cache for the detected GCP Residency. */ export declare let gcpResidencyCache: boolean | null; /** * Sets the detected GCP Residency. * Useful for forcing metadata server detection behavior. * * Set `null` to autodetect the environment (default behavior). */ export declare function setGCPResidency(value?: boolean | null): void; /** * Obtain the timeout for requests to the metadata server. * * In certain environments and conditions requests can take longer than * the default timeout to complete. This function will determine the * appropriate timeout based on the environment. * * @returns {number} a request timeout duration in milliseconds. */ export declare function requestTimeout(): number; export * from './gcp-residency';