MCPcopy Create free account
hub / github.com/adobe/Marinus / aws_check_result

Function aws_check_result

web_server/public/javascripts/api.js:286–298  ·  view source on GitHub ↗
(results, type)

Source from the content-addressed store, hash-verified

284}
285
286function aws_check_result(results, type) {
287 if (results['result'] === true) {
288 var awsResult = document.getElementById("hostingLocation");
289
290 let displayHTML = create_h3("AWS Information");
291 if (type === 'ipv6') {
292 displayHTML += "Region: " + results['record']['region'] + ", Service: " + results['record']['service'] + ", CIDR: " + results['record']['ipv6_prefix'];
293 } else {
294 displayHTML += "Region: " + results['record']['region'] + ", Service: " + results['record']['service'] + ", CIDR: " + results['record']['ip_prefix'];
295 }
296 awsResult.innerHTML += displayHTML + "<br/><br/>"
297 }
298}
299
300function aws_check(type, ip) {
301 var url;

Callers

nothing calls this directly

Calls 1

create_h3Function · 0.85

Tested by

no test coverage detected