balena-cli/doc/codo/file/lib/resin/os/os.coffee.html
2014-12-12 09:28:08 -04:00

234 lines
5.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>CoffeeScript API Documentation</title>
<script src='../../../../javascript/application.js'></script>
<script src='../../../../javascript/search.js'></script>
<link rel='stylesheet' href='../../../../stylesheets/application.css' type='text/css'>
</head>
<body>
<div id='base' data-path='../../../../'></div>
<div id='header'>
<div id='menu'>
<a href='../../../../extra/README.md.html' title='Resin'>
Resin
</a>
&raquo;
<a href='../../../../alphabetical_index.html' title='Index'>
Index
</a>
&raquo;
<span class='title'>lib</span>
&raquo;
<span class='title'>resin</span>
&raquo;
<span class='title'>os</span>
&raquo;
<span class='title'>os.coffee</span>
</div>
</div>
<div id='content'>
<h1>
File:
os.coffee
</h1>
<table class='box'>
<tr>
<td>Defined in:</td>
<td>lib&#47;resin&#47;os</td>
</tr>
</table>
<h2>Method Summary</h2>
<ul class='summary'>
<li>
<span class='signature'>
<a href='#generateCacheName-'>
~
(String)
<b>generateCacheName</b><span>(id, connectionParams)</span>
</a>
</span>
<span class='desc'>
Generate os cache name <p>It generates an unique name for a certain instance of the os
with id and connection params embedded in the filename.</p>
</span>
</li>
</ul>
<h2>Method Details</h2>
<div class='methods'>
<div class='method_details'>
<p class='signature' id='generateCacheName-'>
~
(String)
<b>generateCacheName</b><span>(id, connectionParams)</span>
<br>
</p>
<div class='docstring'>
<div class='note'>
<strong>Note:</strong>
For security reasons, the wifiSsid is omitted from the filename
</div>
<div class='note'>
<strong>Note:</strong>
The original filename extension (*.zip in this case) is lost in the renaming process
</div>
<p>Generate os cache name</p><p>It generates an unique name for a certain instance of the os
with id and connection params embedded in the filename.</p><pre><code>result = resin.os.generateCacheName(51, { network: &#39;ethernet&#39; })
console.log(result)
# 51-ethernet-1418040928724
result = resin.os.generateCacheName(51, { network: &#39;wifi&#39; wifiKey: &#39;MyWifi&#39; wifiSsid: &#39;secret&#39;
})
console.log(result)
# 51-wifi-MyWifi-1418040928724
</code></pre>
</div>
<div class='tags'>
<h3>Parameters:</h3>
<ul class='param'>
<li>
<span class='name'>id</span>
<span class='type'>
(
<tt>String, Number</tt>
)
</span>
&mdash;
<span class='desc'>application id </span>
</li>
<li>
<span class='name'>connectionParams</span>
<span class='type'>
(
<tt>Object</tt>
)
</span>
&mdash;
<span class='desc'>connection parameters </span>
</li>
</ul>
<h3>
Options Hash:
(connectionParams):
</h3>
<ul class='options'>
<li>
<span class='name'>network</span>
<span class='type'>
(
<tt>String</tt>
)
</span>
&mdash;
<span class='desc'>network type </span>
</li>
<li>
<span class='name'>wifiKey</span>
<span class='type'>
(
<tt>String</tt>
)
</span>
&mdash;
<span class='desc'>wifi key </span>
</li>
<li>
<span class='name'>wifiSsid</span>
<span class='type'>
(
<tt>String</tt>
)
</span>
&mdash;
<span class='desc'>wifi ssid </span>
</li>
</ul>
<h3>Returns:</h3>
<ul class='return'>
<li>
<span class='type'></span>
(
<tt>String</tt>
)
&mdash;
<span class='desc'>os cache name </span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id='footer'>
December 12, 14 09:26:32 by
<a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
Codo
</a>
2.0.9
&#10034;
Press H to see the keyboard shortcuts
&#10034;
<a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
&#10034;
<a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
</div>
<iframe id='search_frame'></iframe>
<div id='fuzzySearch'>
<input type='text'>
<ol></ol>
</div>
<div id='help'>
<p>
Quickly fuzzy find classes, mixins, methods, file:
</p>
<ul>
<li>
<span>T</span>
Open fuzzy finder dialog
</li>
</ul>
<p>
Control the navigation frame:
</p>
<ul>
<li>
<span>L</span>
Toggle list view
</li>
<li>
<span>C</span>
Show class list
</li>
<li>
<span>I</span>
Show mixin list
</li>
<li>
<span>F</span>
Show file list
</li>
<li>
<span>M</span>
Show method list
</li>
<li>
<span>E</span>
Show extras list
</li>
</ul>
<p>
You can focus and blur the search input:
</p>
<ul>
<li>
<span>S</span>
Focus search input
</li>
<li>
<span>Esc</span>
Blur search input
</li>
</ul>
</div>
</body>
</html>