UNPKG

ftpd.js

Version:
1,089 lines (258 loc) 11.8 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: ftpdjs</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: ftpdjs</h1> <section> <header> <h2> ftpdjs </h2> </header> <article> <div class="container-overview"> <h4 class="name" id="ftpdjs"><span class="type-signature"></span>new ftpdjs<span class="signature">(options)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line15">line 15</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="getOptions"><span class="type-signature"></span>getOptions<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line119">line 119</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> the options Object for ftpd.js </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> </dd> </dl> <h4 class="name" id="getPackage"><span class="type-signature"></span>getPackage<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line109">line 109</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> the package.json for ftpd.js </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> </dd> </dl> <h4 class="name" id="log"><span class="type-signature"></span>log<span class="signature">(message, callback)</span><span class="type-signature"></span></h4> <div class="description"> This function is used to log messages to the attached stream </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>message</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">the message to log</td> </tr> <tr> <td class="name"><code>callback</code></td> <td class="type"> <span class="param-type"><a href="ftpdjs.html#~logCallback">ftpdjs~logCallback</a></span> </td> <td class="description last">the callback to invoke when finished logging or an error occoured. Optional</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line89">line 89</a> </li></ul></dd> </dl> <h4 class="name" id="setup"><span class="type-signature"></span>setup<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> This function is used to tell ftpdjs to start setting up </div> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line31">line 31</a> </li></ul></dd> </dl> <h4 class="name" id="setupServer"><span class="type-signature"></span>setupServer<span class="signature">(options, callback)</span><span class="type-signature"></span></h4> <div class="description"> This function is used to setup a new server from the options provided </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">the server options</td> </tr> <tr> <td class="name"><code>callback</code></td> <td class="type"> <span class="param-type"><a href="ftpdjs.html#~didSetupServer">ftpdjs~didSetupServer</a></span> </td> <td class="description last">the callback to invoke when the server have finished setting up</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line56">line 56</a> </li></ul></dd> </dl> <h3 class="subsection-title">Type Definitions</h3> <h4 class="name" id="~didSetupServer"><span class="type-signature"></span>didSetupServer<span class="signature">(the)</span><span class="type-signature"></span></h4> <div class="description"> This callback is used when a server have been setup </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>the</code></td> <td class="type"> <span class="param-type"><a href="Server.html">Server</a></span> </td> <td class="description last">server that finished setting up</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line37">line 37</a> </li></ul></dd> </dl> <h4 class="name" id="~logCallback"><span class="type-signature"></span>logCallback<span class="signature">(error)</span><span class="type-signature"></span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>error</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">the error if one occoured</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-since">Since:</dt> <dd class="tag-since"><ul class="dummy"><li>0.6.0</li></ul></dd> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="core_index.js.html">core/index.js</a>, <a href="core_index.js.html#line74">line 74</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ftpdjs.html">ftpdjs</a></li><li><a href="Interface.html">Interface</a></li><li><a href="Server.html">Server</a></li><li><a href="User.html">User</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0-dev</a> on Wed May 27 2015 15:03:13 GMT+0200 (CEST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>