code
stringlengths
1
2.08M
language
stringclasses
1 value
var ec2_Authorizer = { group : null, unusedSecGroupsList : null, usedSecGroupsList : null, unused : new Array(), used : new Array(), ec2ui_session : null, retval : null, authorize : function() { // Get the group's name var newPerm = new Object(); newPerm.groupName = this.group.name; //...
JavaScript
var ec2_InstanceDetails = { init : function() { var session = window.arguments[0]; var instance = window.arguments[1]; document.getElementById("ec2ui.instance.resid").value = instance.resId; document.getElementById("ec2ui.instance.instanceid").value = instance.id; var amiLab...
JavaScript
function getEC2WindowsDeviceList() { var devlist = new Array(); devlist["xvdg"] = "xvdg"; devlist["xvdh"] = "xvdh"; devlist["xvdi"] = "xvdi"; devlist["xvdj"] = "xvdj"; devlist["xvdk"] = "xvdk"; devlist["xvdl"] = "xvdl"; devlist["xvdm"] = "xvdm"; devlist["xvdn"] = "xvdn"; devlist[...
JavaScript
var ec2_LoadbalancerDetails = { init : function() { var loadbalancer = window.arguments[0]; document.getElementById("ec2ui.loadbalancer.LoadBalancerName").value = loadbalancer.LoadBalancerName; document.getElementById("ec2ui.loadbalancer.CreatedTime").value = loadbalancer.CreatedTime; ...
JavaScript
///////////////////////////////////////////////// ///////////////////////////////////////////////// // // Basic JavaScript File and Directory IO module // By: MonkeeSage, v0.1 // ///////////////////////////////////////////////// ///////////////////////////////////////////////// if (typeof(JSIO) != 'boolean') { var ...
JavaScript
var ec2ui_SpotInstanceTreeView = { COLNAMES : ['spotinstance.requestId','spotinstance.spotPrice','spotinstance.type','spotinstance.state', 'spotinstance.imageId','spotinstance.keyName','spotinstance.instanceType','spotinstance.instanceId', 'spotinstance.createTime','spotinstance.prod...
JavaScript
var ec2ui_InstanceHealthTreeView = { COLNAMES : ['InstanceHealth.Description','InstanceHealth.State','InstanceHealth.InstanceId','InstanceHealth.ReasonCode'], treeBox : null, selection : null, arrLocalFiles : new Array(), InstanceHealthList : new Array(), registered : false, get rowCount() ...
JavaScript
var ec2ui_EnableAzone = { ec2ui_session : null, retVal : null, loadbalancer : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.enableazone.Name").value.trim(); var listBox = document.getElementById('Enable_Azone'); var idx = 0; var nRowCount = listBox....
JavaScript
// Depends on jsbn.js and rng.js // convert a (hex) string to a bignum object function parseBigInt(str,r) { return new BigInteger(str,r); } function linebrk(s,n) { var ret = ""; var i = 0; while(i + n < s.length) { ret += s.substring(i,i+n) + "\n"; i += n; } return ret + s.substring(i,s.length); }...
JavaScript
var ec2_ReservedInstancesDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.rsvdInst.id").value = image.id; document.getElementById("ec2ui.rsvdInst.instType").value = image.instanceType; document.getElementById("ec2ui.rsvdInst.azone").valu...
JavaScript
function generateCSVForObject(obj) { var pairs = new Array(); for (k in obj) { if (obj.hasOwnProperty(k)) { var v = obj[k]; if (v != null) { if (typeof v === 'object') { pairs.push(generateCSVForObject(v)); } else if (typeof v !...
JavaScript
var ec2ui_endpointManager = { endpointmap : null, initDialog : function() { this.endpointmap = window.arguments[0]; document.getElementById("ec2ui.endpoints.view").view = ec2ui_endpointsTreeView; ec2ui_endpointsTreeView.setMapping(this.endpointmap); var lastEndpointName = ec2u...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined * in FIPS 180-2 * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. ...
JavaScript
function empty() { } ; var ec2_httpclient = { handler : null, ec2ui_session : null, uri : null, auxObj : null, serviceURL : null, regions : null, elbURL : null, iamURL : null, accessCode : null, secretKey : null, timers : {}, // Change the name since Eucalyptus 1.6.2 h...
JavaScript
var ec2ui_AMIsTreeView = { COLNAMES: ['ami.id', 'ami.location', 'ami.state', 'ami.owner', 'ami.isPublic', 'ami.arch', 'ami.platform', 'ami.rootDeviceType', 'ami.tag'], launchPermissionList : n...
JavaScript
var ec2ui_AvailZoneTreeView = { COLNAMES : ['azone.name','azone.state'], treeBox : null, selection : null, arrLocalFiles : new Array(), zoneList : new Array(), registered : false, get rowCount() { return this.zoneList.length; }, setTree : function(treeBox) { this.treeBo...
JavaScript
var ec2_Createlb = { ec2ui_session : null, retVal : null, reginstanceid : new Array(), selectedprotocol : function() { var valueselected = document.getElementById("ec2ui.createlb.Protocol").value; if(valueselected == "HTTPS"){ document.getElementById("httpsrow").style.display = "block"; }else{ ...
JavaScript
// parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License function parseUri (str) { var o = parseUri.options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = {}, i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name] = {}; uri[o.key[12]].replace(o.q.parser, ...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS PUB 180-1 * Version 2.1a Copyright Paul Johnston 2000 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. */ /* *...
JavaScript
var ec2_uploadCertificate = { ec2ui_session : null, retVal : null, launch : function() { this.retVal.ServerCertificateName = document.getElementById("ec2ui.uploadcretificate.ServerCertificateName").value.trim(); this.retVal.CertificateBody = document.getElementById("ec2ui.uploadcretific...
JavaScript
var ec2_ImageRegistrar = { ec2ui_session : null, retVal : null, getTextBox : function() { return document.getElementById("ec2ui.newimage.manifest"); }, registerImage : function() { if (!this.validateManifest()) return false; this.retVal.manifestPath = this.getTextBox().valu...
JavaScript
var ec2ui_toolsManager = { tools : new Array(), initDialog : function() { ec2ui_prefs.init(); document.getElementById("ec2ui.tools.ssh.command").value = ec2ui_prefs.getSSHCommand(); document.getElementById("ec2ui.tools.ssh.args").value = ec2ui_prefs.getSSHArgs(); document.getElementById("...
JavaScript
// Copyright (c) 2005 Tom Wu // All Rights Reserved. // See "LICENSE" for details. // Extended JavaScript BN functions, required for RSA private ops. // (public) function bnClone() { var r = nbi(); this.copyTo(r); return r; } // (public) return value as integer function bnIntValue() { if(this.s < 0) { if(this...
JavaScript
var ec2ui_ServerCertificateTreeView = { COLNAMES : ['ServerCertificate.ServerCertificateName','ServerCertificate.ServerCertificateId','ServerCertificate.Arn', 'ServerCertificate.Path','ServerCertificate.UploadDate'], treeBox : null, selection : null, arrLocalFiles : new Array(), Serv...
JavaScript
var ec2ui_accountIdsTreeView = { COLNAMES : ['accountids.accountid','accountids.displayname'], treeBox: null, selection: null, accountidlist : new Array(), get rowCount() { return this.accountidlist.length; }, setTree : function(treeBox) { this.treeBox = treeBox; }, getCellText : fun...
JavaScript
var ec2ui_InstancesTreeView = { COLNAMES : [ 'instance.resId', 'instance.ownerId', 'instance.id', 'instance.imageId', 'instance.kernelId', 'instance.ramdiskId', 'instance.state', 'instance.publicDnsName', 'instance.privateDnsName', 'instance.priv...
JavaScript
var ec2_OfferingPurchaser = { offering : null, retVal : null, purchase : function() { if (!this.validateInstanceCount()) return false; this.retVal.count = document.getElementById("ec2ui.purchase.offering.count").value.trim(); this.retVal.ok = true; return true; }, ...
JavaScript
var ec2ui_BundleTasksTreeView = { COLNAMES: [ 'bun.id', 'bun.instanceId', 'bun.state', 'bun.startTime', 'bun.updateTime', 'bun.s3bucket', 'bun.s3prefix', 'bun.errorMsg' ], treeBox: null, selection: null, selectedBundleId: null, task...
JavaScript
// Copyright (c) 2005 Tom Wu // All Rights Reserved. // See "LICENSE" for details. // Basic JavaScript BN library - subset useful for RSA encryption. // Bits per digit var dbits; // JavaScript engine analysis var canary = 0xdeadbeefcafe; var j_lm = ((canary&0xffffff)==0xefcafe); // (public) Constructor function Bi...
JavaScript
// Functions to parse the EC2 RSA Private Key // A BER object has 3 pieces // type: (Numeric) // Array: (Byte array) // Value (Defined for integer) // Expects a byte array, returns the values in hex function parseRSAKey(bytes) { var location = 0; var key = new Object() // Step 1 is to remove the wrapper ...
JavaScript
var ec2ui_DeregisterInstances = { ec2ui_session : null, retVal : null, loadbalancer : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.deregisterlb.LoadBalancerName").value.trim(); var listBox = document.getElementById('Deregister_Instances'); var idx =...
JavaScript
var ec2_InstanceBundler = { id : null, ec2ui_session : null, retVal : null, getBucketName : function() { return document.getElementById("ec2ui.bundleInstance.bucketName"); }, getPrefix : function() { return document.getElementById("ec2ui.bundleInstance.prefix"); }, bun...
JavaScript
var ec2ui_ConfigureHealthCheck = { ec2ui_session : null, retVal : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.loadbalancer.LoadBalancerName").value.trim(); this.retVal.Target = document.getElementById("ec2ui.loadbalancer.target").value.trim(); t...
JavaScript
//main object that holds the current session information var ec2ui_session = { accessCode : "", secretKey : "", initialized : false, controller : null, model : null, credentials : null, accountidmap : null, endpointmap : null, instanceTags ...
JavaScript
var ec2ui_ElasticIPTreeView = { COLNAMES : ['eip.address','eip.instanceid'], treeBox : null, selection : null, arrLocalFiles : new Array(), eipList : new Array(), registered : false, imageIdRegex : new RegExp("^\\d+\\.\\d+\\.\\d+\\.\\d+"), get rowCount() { return this.eipList.length; },...
JavaScript
var ec2ui_KeypairTreeView = { COLNAMES : ['keypair.name','keypair.fingerprint'], treeBox : null, selection : null, arrLocalFiles : new Array(), keypairList : new Array(), registered : false, get rowCount() { return this.keypairList.length; }, setTree : function(treeBox) { t...
JavaScript
var ec2ui_LeaseOfferingsTreeView = { COLNAMES : ['offering.id', 'offering.instanceType', 'offering.azone', 'offering.duration', 'offering.fixedPrice', 'offering.usagePrice', 'offering.description'], imageIdRegex : ne...
JavaScript
var ec2_ServerCertificateDetails = { init : function() { var servercertificate = window.arguments[0]; document.getElementById("ec2ui.servercert.servercertname").value = servercertificate.ServerCertificateName; document.getElementById("ec2ui.servercert.servercertid").value = servercertificate...
JavaScript
// Depends on rsa.js and jsbn2.js // Undo PKCS#1 (type 2, random) padding and, if valid, return the plaintext function pkcs1unpad2(d,n) { var b = d.toByteArray(); var i = 0; while(i < b.length && b[i] == 0) ++i; if(b.length-i != n-1 || b[i] != 2) return null; ++i; while(b[i] != 0) if(++i >= b.lengt...
JavaScript
var ec2ui_DisableAzone = { ec2ui_session : null, retVal : null, loadbalancer : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.disableazone.Name").value.trim(); var listBox = document.getElementById('Disable_Azone'); var idx = 0; var nRowCount = listB...
JavaScript
var ec2_PermissionDetails = { init : function() { var perm = window.arguments[0]; document.getElementById("ec2ui.permission.protocol").value = perm.protocol; document.getElementById("ec2ui.permission.fromport").value = perm.fromPort; document.getElementById("ec2ui.permission.toport")...
JavaScript
var ec2_EventDetails = { init : function() { var instanceevent = window.arguments[0]; document.getElementById("ec2ui.instanceevent.id").value = instanceevent.instanceId; document.getElementById("ec2ui.instanceevent.event").value = instanceevent.event; document.getElementById("ec2ui.i...
JavaScript
/* With due thanks to http://whytheluckystiff.net */ /* other support functions -- thanks, ecmanaut! */ var strftime_funks = { zeropad: function( n ){ return n>9 ? n : '0'+n; }, a: function(t) { return ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][t.getDay()] }, A: function(t) { return ['Sunday','Monday','Tuedsay',...
JavaScript
var ec2_BundleTaskDetails = { init : function() { var task = window.arguments[0]; document.getElementById("ec2ui.bundleTask.id").value = task.id; document.getElementById("ec2ui.bundleTask.state").value = task.state; document.getElementById("ec2ui.bundleTask.startTime").value = task.startTime;...
JavaScript
var ec2_InstanceLauncher = { image : null, ec2ui_session : null, retVal : null, unusedSecGroupsList : null, usedSecGroupsList : null, unused : new Array(), used : new Array(), launch : function() { if (!this.validateMin()) return false; if (!this.validateMax()) return fa...
JavaScript
var ec2_AMIDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.ami.id").value = image.id; document.getElementById("ec2ui.ami.location").value = image.location; document.getElementById("ec2ui.ami.aki").value = image.aki; document.get...
JavaScript
var ec2_ElasticIPDetails = { init : function() { var eip = window.arguments[0]; document.getElementById("ec2ui.eip.address").value = eip.address; document.getElementById("ec2ui.eip.instanceid").value = eip.instanceid; document.getElementById("ec2ui.eip.tag").value = eip.tag || ""; } }
JavaScript
var BaseImagesView = { COLNAMES: [], treeBox: null, selection: null, selectedImageId: null, // for preserving selection across filters and refreshes imageList : new Array(), registered : false, get rowCount() { return this.imageList.length; }, setTree : function(treeBox) { thi...
JavaScript
var ec2ui_accountIdManager = { accountidmap : null, initDialog : function() { this.accountidmap = window.arguments[0]; document.getElementById("ec2ui.accountids.view").view = ec2ui_accountIdsTreeView; ec2ui_accountIdsTreeView.setMapping(this.accountidmap); document.getElementBy...
JavaScript
var ec2ui_PermissionsTreeView = { COLNAMES : ['permission.protocol','permission.fromPort','permission.toPort','permission.groups','permission.cidrs'], treeBox : null, selection : null, permissionList : new Array(), get rowCount() { return this.permissionList.length; }, setTree : function(t...
JavaScript
var ec2_KeyPairDetails = { init : function() { var keypair = window.arguments[0]; document.getElementById("ec2ui.keypair.name").value = keypair.name; document.getElementById("ec2ui.keypair.fingerprint").value = keypair.fingerprint; } }
JavaScript
var ec2_AMIMigrator = { image : null, session : null, retVal : null, manifest : null, regionSelected : null, getSourceBucketName : function() { return document.getElementById("ec2ui.migrateAMI.bucketName.source"); }, getDestBucketName : function() { return document.getE...
JavaScript
var ec2ui_AMIDeleter = { session : null, imageLoc : null, getProgressMeter : function() { if (document) return document.getElementById("ec2ui.delete.ami.progress"); }, getCurrentOperation : function() { if (document) return document.getElementById("ec2ui.del...
JavaScript
var ec2ui_credentialsTreeView = { COLNAMES: ['credential.name','credential.accessKey'], treeBox: null, selection: null, credentials : new Array(), get rowCount() { return this.credentials.length; }, setTree : function(treeBox) { this.treeBox = treeBox; }, getCellText : function(idx, col...
JavaScript
var ec2_EIPSelector = { ec2ui_session : null, instanceId : null, retVal : null, eipList : null, attach : function() { var eipMenu = document.getElementById("ec2ui.selectEIP.eip"); var selected = eipMenu.selectedIndex; var eipSel = this.eipList[selected]; if (eipSel.instanceid != null && eip...
JavaScript
var ec2ui_LoadbalancerTreeView = { COLNAMES : ['loadbalancer.LoadBalancerName','loadbalancer.CreatedTime','loadbalancer.DNSName','loadbalancer.InstanceId', 'loadbalancer.Protocol','loadbalancer.LoadBalancerPort','loadbalancer.InstancePort', 'loadbalancer.Interval','loadbalancer.Timeo...
JavaScript
var ec2_LeaseOfferingDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.offering.id").value = image.id; document.getElementById("ec2ui.offering.instType").value = image.instanceType; document.getElementById("ec2ui.offering.azone").value = ...
JavaScript
var ec2_SnapshotDetails = { init : function() { var snapshot = window.arguments[0]; document.getElementById("ec2ui.snapshot.id").value = snapshot.id; document.getElementById("ec2ui.snapshot.volumeId").value = snapshot.volumeId; document.getElementById("ec2ui.snapshot.status").value =...
JavaScript
var ec2ui_SecurityGroupsTreeView = { COLNAMES : ['securitygroup.ownerId','securitygroup.name','securitygroup.description'], treeBox : null, selection : null, groupList : new Array(), registered : false, get rowCount() { return this.groupList.length; }, setTree : function(treeBox) {...
JavaScript
// XpiInstaller // By Pike (Heavily inspired by code from Henrik Gemal and Stephen Clavering) var XpiInstaller = { // --- Editable items begin --- extFullName: 'Hybridfox', // The name displayed to the user (don't include the version) extShortName: 'ec2ui', // The leafname of the JAR file (without the .ja...
JavaScript
var ec2ui_ConfigureHealthCheck = { ec2ui_session : null, retVal : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.loadbalancer.LoadBalancerName").value.trim(); this.retVal.Target = document.getElementById("ec2ui.loadbalancer.target").value.trim(); t...
JavaScript
var ec2ui_LeaseOfferingsTreeView = { COLNAMES : ['offering.id', 'offering.instanceType', 'offering.azone', 'offering.duration', 'offering.fixedPrice', 'offering.usagePrice', 'offering.description'], imageIdRegex : ne...
JavaScript
// controller: slightly higher level of abstraction over the EC2 API var ec2ui_controller = { getNsResolver : function() { return ec2_httpclient.getNsResolver(); }, registerImageInRegion : function(manifestPath, region, callback) { region = region.toLowerCase(); // Determine the cu...
JavaScript
var ec2_SecurityGroupDetails = { init : function() { var group = window.arguments[0]; document.getElementById("ec2ui.secgroup.name").value = group.name; document.getElementById("ec2ui.secgroup.ownerid").value = group.ownerId; document.getElementById("ec2ui.secgroup.description").valu...
JavaScript
///////////////////////////////////////////////// ///////////////////////////////////////////////// // // Basic JavaScript File and Directory IO module // By: MonkeeSage, v0.1 // ///////////////////////////////////////////////// ///////////////////////////////////////////////// if (typeof(JSIO) != 'boolean') { var ...
JavaScript
function empty() { } ; var ec2_httpclient = { handler : null, ec2ui_session : null, uri : null, auxObj : null, serviceURL : null, regions : null, elbURL : null, accessCode : null, secretKey : null, timers : {}, // Change the name since Eucalyptus 1.6.2 has a problem with...
JavaScript
var ec2ui_BundleTasksTreeView = { COLNAMES: [ 'bun.id', 'bun.instanceId', 'bun.state', 'bun.startTime', 'bun.updateTime', 'bun.s3bucket', 'bun.s3prefix', 'bun.errorMsg' ], treeBox: null, selection: null, selectedBundleId: null, task...
JavaScript
var ec2_VolumeAttacher = { ec2ui_session : null, retVal : null, volumeId : null, attach : function() { if (!this.validateDevice()) return false; this.retVal.instanceId = document.getElementById("ec2ui.newattachment.instanceId").value.split(":")[0]; this.retVal.volumeId = this.volumeId; this.re...
JavaScript
// Copyright (c) 2005 Tom Wu // All Rights Reserved. // See "LICENSE" for details. // Basic JavaScript BN library - subset useful for RSA encryption. // Bits per digit var dbits; // JavaScript engine analysis var canary = 0xdeadbeefcafe; var j_lm = ((canary&0xffffff)==0xefcafe); // (public) Constructor function Bi...
JavaScript
var ec2_KeyPairDetails = { init : function() { var keypair = window.arguments[0]; document.getElementById("ec2ui.keypair.name").value = keypair.name; document.getElementById("ec2ui.keypair.fingerprint").value = keypair.fingerprint; } }
JavaScript
function generateCSVForObject(obj) { var pairs = new Array(); for (k in obj) { if (obj.hasOwnProperty(k)) { var v = obj[k]; if (v != null) { if (typeof v === 'object') { pairs.push(generateCSVForObject(v)); } else if (typeof v !...
JavaScript
var ec2_SnapshotDetails = { init : function() { var snapshot = window.arguments[0]; document.getElementById("ec2ui.snapshot.id").value = snapshot.id; document.getElementById("ec2ui.snapshot.volumeId").value = snapshot.volumeId; document.getElementById("ec2ui.snapshot.status").value =...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS PUB 180-1 * Version 2.1a Copyright Paul Johnston 2000 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. */ /* *...
JavaScript
var ec2ui_AvailZoneTreeView = { COLNAMES : ['azone.name','azone.state'], treeBox : null, selection : null, arrLocalFiles : new Array(), zoneList : new Array(), registered : false, get rowCount() { return this.zoneList.length; }, setTree : function(treeBox) { this.treeBo...
JavaScript
var ec2_EIPSelector = { ec2ui_session : null, instanceId : null, retVal : null, eipList : null, attach : function() { var eipMenu = document.getElementById("ec2ui.selectEIP.eip"); var selected = eipMenu.selectedIndex; var eipSel = this.eipList[selected]; if (eipSel.instanceid != null && eip...
JavaScript
var ec2ui_toolsManager = { tools : new Array(), initDialog : function() { ec2ui_prefs.init(); document.getElementById("ec2ui.tools.ssh.command").value = ec2ui_prefs.getSSHCommand(); document.getElementById("ec2ui.tools.ssh.args").value = ec2ui_prefs.getSSHArgs(); document.getElementById("...
JavaScript
var ec2ui_endpointsTreeView = { COLNAMES: ['endpoint.name','endpoint.type','endpoint.url'], treeBox: null, selection: null, endpointlist : new Array(), get rowCount() { return this.endpointlist.length; }, setTree : function(treeBox) { this.treeBox = treeBox; }, ge...
JavaScript
var ec2ui_RegisterInstances = { ec2ui_session : null, retVal : null, loadbalancer : null, launch : function() { this.retVal.LoadBalancerName = document.getElementById("ec2ui.registerlb.LoadBalancerName").value.trim(); var listBox = document.getElementById('Register_Instances'); var idx = 0; v...
JavaScript
var ec2_AMIDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.ami.id").value = image.id; document.getElementById("ec2ui.ami.location").value = image.location; document.getElementById("ec2ui.ami.aki").value = image.aki; document.get...
JavaScript
// Depends on jsbn.js and rng.js // convert a (hex) string to a bignum object function parseBigInt(str,r) { return new BigInteger(str,r); } function linebrk(s,n) { var ret = ""; var i = 0; while(i + n < s.length) { ret += s.substring(i,i+n) + "\n"; i += n; } return ret + s.substring(i,s.length); }...
JavaScript
var ec2ui_InstancesTreeView = { COLNAMES : [ 'instance.resId', 'instance.ownerId', 'instance.publictag', 'instance.id', 'instance.imageId', 'instance.kernelId', 'instance.ramdiskId', 'instance.state', 'instance.publicDnsName', 'instance.privateDn...
JavaScript
function getEC2WindowsDeviceList() { var devlist = new Array(); devlist["xvdg"] = "xvdg"; devlist["xvdh"] = "xvdh"; devlist["xvdi"] = "xvdi"; devlist["xvdj"] = "xvdj"; devlist["xvdk"] = "xvdk"; devlist["xvdl"] = "xvdl"; devlist["xvdm"] = "xvdm"; devlist["xvdn"] = "xvdn"; devlist[...
JavaScript
var ec2_EBSVolumeAttacher = { ec2ui_session : null, retVal : null, instanceId : null, volList : null, attach : function() { if (!this.validateDevice()) return false; this.retVal.device = document.getElementById("ec2ui.attachebsvolume.device").value; var idxSel = document.ge...
JavaScript
function encodeJSONMap(map) { var pairs = new Array(); for (k in map) { if (map.hasOwnProperty(k)) { var v = map[k]; if (v != null) { if (typeof v === 'object') { pairs.push("'"+k+"':"+encodeJSONMap(v)); } else if (typeof v != '...
JavaScript
var ec2_ElasticIPDetails = { init : function() { var eip = window.arguments[0]; document.getElementById("ec2ui.eip.address").value = eip.address; document.getElementById("ec2ui.eip.instanceid").value = eip.instanceid; document.getElementById("ec2ui.eip.tag").value = eip.tag || ""; } }
JavaScript
var ec2_OfferingPurchaser = { offering : null, retVal : null, purchase : function() { if (!this.validateInstanceCount()) return false; this.retVal.count = document.getElementById("ec2ui.purchase.offering.count").value.trim(); this.retVal.ok = true; return true; }, ...
JavaScript
var ec2ui_ElasticIPTreeView = { COLNAMES : ['eip.address','eip.instanceid'], treeBox : null, selection : null, arrLocalFiles : new Array(), eipList : new Array(), registered : false, imageIdRegex : new RegExp("^\\d+\\.\\d+\\.\\d+\\.\\d+"), get rowCount() { return this.eipList.length; },...
JavaScript
var ec2ui_endpointManager = { endpointmap : null, initDialog : function() { this.endpointmap = window.arguments[0]; document.getElementById("ec2ui.endpoints.view").view = ec2ui_endpointsTreeView; ec2ui_endpointsTreeView.setMapping(this.endpointmap); var lastEndpointName = ec2u...
JavaScript
var ec2_ReservedInstancesDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.rsvdInst.id").value = image.id; document.getElementById("ec2ui.rsvdInst.instType").value = image.instanceType; document.getElementById("ec2ui.rsvdInst.azone").valu...
JavaScript
var ec2_VolumeCreator = { ec2ui_session : null, retVal : null, create : function() { this.retVal.size = document.getElementById("ec2ui.newvolume.size").value.trim(); if (this.retVal.size.length == 0) this.retVal.size = null; this.retVal.snapshotId = document.getElementById("ec2ui.n...
JavaScript
var ec2_Authorizer = { group : null, unusedSecGroupsList : null, usedSecGroupsList : null, unused : new Array(), used : new Array(), ec2ui_session : null, retval : null, authorize : function() { // Get the group's name var newPerm = new Object(); newPerm.groupName = this.group.name; //...
JavaScript
var ec2ui_InstanceHealthTreeView = { COLNAMES : ['InstanceHealth.Description','InstanceHealth.State','InstanceHealth.InstanceId','InstanceHealth.ReasonCode'], treeBox : null, selection : null, arrLocalFiles : new Array(), InstanceHealthList : new Array(), registered : false, get rowCount() ...
JavaScript
var ec2ui_accountIdsTreeView = { COLNAMES : ['accountids.accountid','accountids.displayname'], treeBox: null, selection: null, accountidlist : new Array(), get rowCount() { return this.accountidlist.length; }, setTree : function(treeBox) { this.treeBox = treeBox; }, getCellText : fun...
JavaScript
/* * * Base64 encode / decode * http://www.webtoolkit.info/javascript-base64.html * */ // I'm using this even though there's a base64 implementation in sha1.js // because it doesn't seem to deal with strings of odd-length and the 5 minutes // I've spent looking at it doesn't suggest anything obvious. I have no ...
JavaScript
var ec2_LeaseOfferingDetails = { init : function() { var image = window.arguments[0]; document.getElementById("ec2ui.offering.id").value = image.id; document.getElementById("ec2ui.offering.instType").value = image.instanceType; document.getElementById("ec2ui.offering.azone").value = ...
JavaScript
var ec2ui_AMIsTreeView = { COLNAMES: ['ami.id', 'ami.location', 'ami.state', 'ami.owner', 'ami.isPublic', 'ami.arch', 'ami.platform', 'ami.rootDeviceType', 'ami.tag'], launchPermissionList : n...
JavaScript
var ec2ui_accountIdManager = { accountidmap : null, initDialog : function() { this.accountidmap = window.arguments[0]; document.getElementById("ec2ui.accountids.view").view = ec2ui_accountIdsTreeView; ec2ui_accountIdsTreeView.setMapping(this.accountidmap); document.getElementBy...
JavaScript
var ec2_BundleTaskDetails = { init : function() { var task = window.arguments[0]; document.getElementById("ec2ui.bundleTask.id").value = task.id; document.getElementById("ec2ui.bundleTask.state").value = task.state; document.getElementById("ec2ui.bundleTask.startTime").value = task.startTime;...
JavaScript
var ec2ui_S3_KeyCopier = { session : null, srcKeys : null, params : null, fContinue : true, // The Total number of copy requests issued. // This can be different from the total # keys // to be copied if the user hit CANCEL // The total # of keys to be migrated totalKeys : 0, //...
JavaScript
// Copyright (c) 2005 Tom Wu // All Rights Reserved. // See "LICENSE" for details. // Extended JavaScript BN functions, required for RSA private ops. // (public) function bnClone() { var r = nbi(); this.copyTo(r); return r; } // (public) return value as integer function bnIntValue() { if(this.s < 0) { if(this...
JavaScript