1.0.10 • Published 9 years ago

qlik-sp4ce-init-whitelist v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

qlik-sp4ce-init-whitelist

A plugin for the qlik-sp4ce-init module

Author: Loic Formont
License: MIT Licensed
Copyright: Copyright (C) 2015 Loic Formont
Example

var initWhitelist = require("qlik-sp4ce-init-whitelist");

initWhitelist.init(options, headers) ⇒ task

Inits a task that tries to add an IP into the whitelist

Kind: static method of qlik-sp4ce-init-whitelist

ParamTypeDefaultDescription
optionsObjecta set of parameters with default values described below
options.certstring"..\\Exported Certificates\\localhost\\client.pfx"the path to the Qlik Sense pfx certificate
options.hoststring"localhost"the URI of the Qlik Sense QRS endpoint (relative to the node server ofc)
options.ipstring"<calling url>"the ip to add to the whitelist
options.retrystring30the maximum number of retries
options.httpTimeoutstring10000the maximum http timeout
options.retryTimeoutstring5000the maximum retry timeout
headersObjectthe headers of the http request that called this function

initWhitelist~add(certif, host, ip, retry, httpTimeout, task) ⇒ Promise

Tries to add the specified ip to the host whitelist

Kind: inner method of qlik-sp4ce-init-whitelist
Returns: Promise - a promise resolving to the returned value

ParamTypeDescription
certifbufferthe certificate pfx buffered file
hoststringthe host with the QRS endpoint
ipstringthe IP to add to the whitelist
retryintthe current number of retries
httpTimeoutintthe http timeout
tasktaskthe task to tell when progress is done

Example

var added = add(certif, host, ip, retry, httpTimeout, task);
added.fail(console.log);

initWhitelist~loop(certif, host, ip, retry, retryTimeout, httpTimeout, task) ⇒ Promise

Loops until whitelis addition is a success or retry number is reached

Kind: inner method of qlik-sp4ce-init-whitelist
Returns: Promise - a promise resolving to the returned value

ParamTypeDescription
certifbufferthe certificate pfx buffered file
hoststringthe host with the QRS endpoint
ipstringthe IP to add to the whitelist
retryintthe current number of retries
retryTimeoutintthe retry timeout
httpTimeoutintthe http timeout
tasktaskthe task to tell when progress is done

Example

loop(certif, host, ip, retry, retryTimeout, httpTimeout, task);
1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago