Skip to content

Commit

Permalink
feat: Introduce Cargo message
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Feb 13, 2020
1 parent ad9da32 commit 3b689b2
Show file tree
Hide file tree
Showing 39 changed files with 3,082 additions and 304 deletions.
2,763 changes: 2,763 additions & 0 deletions api/classes/cargo.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions api/classes/certificate.html
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L95">src/lib/crypto_wrappers/x509/Certificate.ts:95</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L95">src/lib/crypto_wrappers/x509/Certificate.ts:95</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -2495,7 +2495,7 @@ <h3>pkijs<wbr>Certificate</h3>
<div class="tsd-signature tsd-kind-icon">pkijs<wbr>Certificate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">pkijs.Certificate</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L97">src/lib/crypto_wrappers/x509/Certificate.ts:97</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L97">src/lib/crypto_wrappers/x509/Certificate.ts:97</a></li>
</ul>
</aside>
</section>
Expand All @@ -2512,7 +2512,7 @@ <h3>calculate<wbr>Subject<wbr>Private<wbr>Address</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L153">src/lib/crypto_wrappers/x509/Certificate.ts:153</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L153">src/lib/crypto_wrappers/x509/Certificate.ts:153</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand All @@ -2529,7 +2529,7 @@ <h3>get<wbr>Certification<wbr>Path</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L166">src/lib/crypto_wrappers/x509/Certificate.ts:166</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L166">src/lib/crypto_wrappers/x509/Certificate.ts:166</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2572,7 +2572,7 @@ <h3>get<wbr>Common<wbr>Name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L129">src/lib/crypto_wrappers/x509/Certificate.ts:129</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L129">src/lib/crypto_wrappers/x509/Certificate.ts:129</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -2589,7 +2589,7 @@ <h3>get<wbr>Public<wbr>Key</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L139">src/lib/crypto_wrappers/x509/Certificate.ts:139</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L139">src/lib/crypto_wrappers/x509/Certificate.ts:139</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">CryptoKey</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand All @@ -2606,7 +2606,7 @@ <h3>get<wbr>Serial<wbr>Number</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L117">src/lib/crypto_wrappers/x509/Certificate.ts:117</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L117">src/lib/crypto_wrappers/x509/Certificate.ts:117</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2633,7 +2633,7 @@ <h3>get<wbr>Serial<wbr>Number<wbr>Hex</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L124">src/lib/crypto_wrappers/x509/Certificate.ts:124</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L124">src/lib/crypto_wrappers/x509/Certificate.ts:124</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand All @@ -2650,7 +2650,7 @@ <h3>serialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L102">src/lib/crypto_wrappers/x509/Certificate.ts:102</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L102">src/lib/crypto_wrappers/x509/Certificate.ts:102</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2672,7 +2672,7 @@ <h3>validate</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L143">src/lib/crypto_wrappers/x509/Certificate.ts:143</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L143">src/lib/crypto_wrappers/x509/Certificate.ts:143</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -2689,7 +2689,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> deserialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L25">src/lib/crypto_wrappers/x509/Certificate.ts:25</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L25">src/lib/crypto_wrappers/x509/Certificate.ts:25</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2725,7 +2725,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> issue</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/x509/Certificate.ts#L38">src/lib/crypto_wrappers/x509/Certificate.ts:38</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/x509/Certificate.ts#L38">src/lib/crypto_wrappers/x509/Certificate.ts:38</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion api/classes/certificateerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,7 @@ <h3>name</h3>
<p>Inherited from <a href="relayneterror.html">RelaynetError</a>.<a href="relayneterror.html#name">name</a></p>
<p>Overrides Error.name</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/cmserror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2575,7 +2575,7 @@ <h3>name</h3>
<p>Inherited from <a href="relayneterror.html">RelaynetError</a>.<a href="relayneterror.html#name">name</a></p>
<p>Overrides Error.name</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/dhcertificateerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ <h3>name</h3>
<p>Inherited from <a href="relayneterror.html">RelaynetError</a>.<a href="relayneterror.html#name">name</a></p>
<p>Overrides Error.name</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
6 changes: 3 additions & 3 deletions api/classes/envelopeddata.html
Original file line number Diff line number Diff line change
Expand Up @@ -2426,7 +2426,7 @@ <h3><span class="tsd-flag ts-flagAbstract">Abstract</span> decrypt</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/cms/envelopedData.ts#L104">src/lib/crypto_wrappers/cms/envelopedData.ts:104</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/cms/envelopedData.ts#L104">src/lib/crypto_wrappers/cms/envelopedData.ts:104</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2457,7 +2457,7 @@ <h3>serialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/cms/envelopedData.ts#L91">src/lib/crypto_wrappers/cms/envelopedData.ts:91</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/cms/envelopedData.ts#L91">src/lib/crypto_wrappers/cms/envelopedData.ts:91</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2480,7 +2480,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> deserialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/crypto_wrappers/cms/envelopedData.ts#L54">src/lib/crypto_wrappers/cms/envelopedData.ts:54</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/crypto_wrappers/cms/envelopedData.ts#L54">src/lib/crypto_wrappers/cms/envelopedData.ts:54</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion api/classes/invalidmessageerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2575,7 +2575,7 @@ <h3>name</h3>
<p>Inherited from <a href="relayneterror.html">RelaynetError</a>.<a href="relayneterror.html#name">name</a></p>
<p>Overrides Error.name</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/RelaynetError.ts#L4">src/lib/RelaynetError.ts:4</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
25 changes: 14 additions & 11 deletions api/classes/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -2423,6 +2423,9 @@ <h3>Hierarchy</h3>
<li>
<a href="parcel.html" class="tsd-signature-type">Parcel</a>
</li>
<li>
<a href="cargo.html" class="tsd-signature-type">Cargo</a>
</li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -2472,7 +2475,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L23">src/lib/ramf/Message.ts:23</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L23">src/lib/messages/Message.ts:23</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -2503,7 +2506,7 @@ <h3>date</h3>
<div class="tsd-signature tsd-kind-icon">date<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L21">src/lib/ramf/Message.ts:21</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L21">src/lib/messages/Message.ts:21</a></li>
</ul>
</aside>
</section>
Expand All @@ -2513,7 +2516,7 @@ <h3>id</h3>
<div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L20">src/lib/ramf/Message.ts:20</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L20">src/lib/messages/Message.ts:20</a></li>
</ul>
</aside>
</section>
Expand All @@ -2523,7 +2526,7 @@ <h3>payload<wbr>Serialized</h3>
<div class="tsd-signature tsd-kind-icon">payload<wbr>Serialized<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L28">src/lib/ramf/Message.ts:28</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L28">src/lib/messages/Message.ts:28</a></li>
</ul>
</aside>
</section>
Expand All @@ -2533,7 +2536,7 @@ <h3>recipient<wbr>Address</h3>
<div class="tsd-signature tsd-kind-icon">recipient<wbr>Address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L26">src/lib/ramf/Message.ts:26</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L26">src/lib/messages/Message.ts:26</a></li>
</ul>
</aside>
</section>
Expand All @@ -2543,7 +2546,7 @@ <h3>sender<wbr>CaCertificate<wbr>Chain</h3>
<div class="tsd-signature tsd-kind-icon">sender<wbr>CaCertificate<wbr>Chain<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">keyof </span><a href="certificate.html" class="tsd-signature-type">Certificate</a><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L23">src/lib/ramf/Message.ts:23</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L23">src/lib/messages/Message.ts:23</a></li>
</ul>
</aside>
</section>
Expand All @@ -2553,7 +2556,7 @@ <h3>sender<wbr>Certificate</h3>
<div class="tsd-signature tsd-kind-icon">sender<wbr>Certificate<span class="tsd-signature-symbol">:</span> <a href="certificate.html" class="tsd-signature-type">Certificate</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L27">src/lib/ramf/Message.ts:27</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L27">src/lib/messages/Message.ts:27</a></li>
</ul>
</aside>
</section>
Expand All @@ -2563,7 +2566,7 @@ <h3>ttl</h3>
<div class="tsd-signature tsd-kind-icon">ttl<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L22">src/lib/ramf/Message.ts:22</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L22">src/lib/messages/Message.ts:22</a></li>
</ul>
</aside>
</section>
Expand All @@ -2580,7 +2583,7 @@ <h3>get<wbr>Sender<wbr>Certification<wbr>Path</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L57">src/lib/ramf/Message.ts:57</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L57">src/lib/messages/Message.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2611,7 +2614,7 @@ <h3><span class="tsd-flag ts-flagAbstract">Abstract</span> serialize</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L44">src/lib/ramf/Message.ts:44</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L44">src/lib/messages/Message.ts:44</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2644,7 +2647,7 @@ <h3>validate</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/c67828b/src/lib/ramf/Message.ts#L72">src/lib/ramf/Message.ts:72</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-core-js/blob/592f53a/src/lib/messages/Message.ts#L72">src/lib/messages/Message.ts:72</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 3b689b2

Please sign in to comment.