How to use the gcp-metadata.BASE_PATH function in gcp-metadata

To help you get started, we’ve selected a few gcp-metadata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ruslang02 / atomos / node_modules / google-auth-library / build / src / auth / computeclient.js View on Github external
if (e) {
                        e.message = helpfulMessage;
                    }
                    else {
                        e = new Error(helpfulMessage);
                        e.code = res.status.toString();
                    }
                }
            }
            throw e;
        });
    };
    /**
     * Google Compute Engine metadata server token endpoint.
     */
    Compute._GOOGLE_OAUTH2_TOKEN_URL = gcpMetadata.BASE_PATH + "/instance/service-accounts/default/token";
    return Compute;
}(oauth2client_1.OAuth2Client));
exports.Compute = Compute;

gcp-metadata

Get the metadata from a Google Cloud Platform environment

Apache-2.0
Latest version published 6 months ago

Package Health Score

87 / 100
Full package analysis