argo-discover
v1.0.0
Published
Use Discover in Argo
Readme
Argo Discover
A Discover tool for Node.js application running on Argo (and Harbor).
Usage
Discover is a function that can be called with up to three arguments and returns a Promise, that once resolved, is an array of hosts.
Arguments
productString. Required. Product to Discover.environmentString. Optional. Environment to use to Discoverproduct. If blank, uses$ENVIRONMENT(which is provided by Argo/Harbor).locationString. Optional. Location to use to Discoverproductenvironmentpair. Location can only be used ifenvironmentis used. If blank, uses$LOCATION(which is provided by Argo/Harbor)
Returns
A Promise object.
Example
#!javascript
const discover = require("discover");
discover("<product name>"[, "<environment>"[, "<location>"]]).then(
(data) => {
// On success, data will be an array of hosts
},
(reason) => {
// If there were any errors, reason will tell you what they were
}
);Author
Wilson Wise
