Skip to content

Commit

Permalink
deploy: 422d18c
Browse files Browse the repository at this point in the history
  • Loading branch information
Collinbrown95 committed Nov 7, 2023
1 parent 7f4bb2c commit afef29f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
16 changes: 14 additions & 2 deletions configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,14 @@ <h2 id="webhook-server">Webhook Server</h2>
</code></pre></div></td></tr></table></div>
<h2 id="graph-updater">Graph Updater</h2>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nv">GITHUB_TOKEN</span><span class="o">=</span>changeme
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nv">GITHUB_TOKEN</span><span class="o">=</span>changeme
<span class="nv">NATS_URL</span><span class="o">=</span>localhost:4222

<span class="c1"># GRAPHQL_URL=http://localhost:4000/graphql</span>
<span class="nv">GRAPHQL_URL</span><span class="o">=</span>http://api:4000/graphql
</code></pre></div></td></tr></table></div>
<h2 id="endpoint-scanners">Endpoint Scanners</h2>
<h3 id="github-cloned-repo-checks">Github Cloned Repo Checks</h3>
Expand All @@ -573,11 +579,17 @@ <h3 id="github-octokit-checks">Github Octokit Checks</h3>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nv">GITHUB_TOKEN</span><span class="o">=</span>changeme
<span class="normal">5</span>
<span class="normal">6</span>
<span class="normal">7</span>
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nv">GITHUB_TOKEN</span><span class="o">=</span>changeme
<span class="nv">NATS_URL</span><span class="o">=</span>localhost:4222

<span class="c1"># NATS sub stream</span>
<span class="nv">NATS_SUB_STREAM</span><span class="o">=</span><span class="s2">&quot;EventsScanner.githubEndpoints&quot;</span>

<span class="c1"># GRAPHQL_URL=http://localhost:4000/graphql</span>
<span class="nv">GRAPHQL_URL</span><span class="o">=</span>http://api:4000/graphql
</code></pre></div></td></tr></table></div>
<h3 id="web-endpoint-checks">Web Endpoint Checks</h3>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">1</span>
Expand Down
34 changes: 17 additions & 17 deletions graphql-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,7 @@ <h3 id="mutations">Mutations</h3>

<details class="quote">
<summary>Source code in <code>api/src/graphql_types/mutation.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"> 8</span>
<span class="normal"> 9</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"> 9</span>
<span class="normal">10</span>
<span class="normal">11</span>
<span class="normal">12</span>
Expand Down Expand Up @@ -861,7 +860,8 @@ <h3 id="mutations">Mutations</h3>
<span class="normal">84</span>
<span class="normal">85</span>
<span class="normal">86</span>
<span class="normal">87</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">type</span>
<span class="normal">87</span>
<span class="normal">88</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">type</span>
<span class="k">class</span> <span class="nc">Mutation</span><span class="p">:</span>
<span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="k">def</span> <span class="nf">endpoint</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">url</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
Expand Down Expand Up @@ -917,7 +917,7 @@ <h3 id="mutations">Mutations</h3>
<span class="sd"> ```</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">client</span> <span class="o">=</span> <span class="n">GraphDB</span><span class="p">()</span>
<span class="n">client</span><span class="o">.</span><span class="n">upsert_github_endpoint</span><span class="p">(</span><span class="n">endpoint</span><span class="p">)</span>
<span class="n">client</span><span class="o">.</span><span class="n">upsert_scanner_endpoint</span><span class="p">(</span><span class="n">endpoint</span><span class="p">)</span>
<span class="n">client</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
<span class="k">return</span> <span class="n">endpoint</span><span class="o">.</span><span class="n">url</span>

Expand Down Expand Up @@ -975,16 +975,16 @@ <h2 id="graphql_types.mutation.Mutation.endpoint" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>api/src/graphql_types/mutation.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">10</span>
<span class="normal">11</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">11</span>
<span class="normal">12</span>
<span class="normal">13</span>
<span class="normal">14</span>
<span class="normal">15</span>
<span class="normal">16</span>
<span class="normal">17</span>
<span class="normal">18</span>
<span class="normal">19</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="normal">19</span>
<span class="normal">20</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="k">def</span> <span class="nf">endpoint</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">url</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Insert an endpoint with no additional metadata. This mutation should only</span>
Expand Down Expand Up @@ -1019,16 +1019,16 @@ <h2 id="graphql_types.mutation.Mutation.endpoints" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>api/src/graphql_types/mutation.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">68</span>
<span class="normal">69</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">69</span>
<span class="normal">70</span>
<span class="normal">71</span>
<span class="normal">72</span>
<span class="normal">73</span>
<span class="normal">74</span>
<span class="normal">75</span>
<span class="normal">76</span>
<span class="normal">77</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="normal">77</span>
<span class="normal">78</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="k">def</span> <span class="nf">endpoints</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">urls</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Writes a list of URLs to the graph. Each URL will be associated with</span>
Expand Down Expand Up @@ -1122,8 +1122,7 @@ <h3 id="graphql_types.mutation.Mutation.githubEndpoint--example-of-how-to-use-th

<details class="quote">
<summary>Source code in <code>api/src/graphql_types/mutation.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">21</span>
<span class="normal">22</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">22</span>
<span class="normal">23</span>
<span class="normal">24</span>
<span class="normal">25</span>
Expand Down Expand Up @@ -1167,7 +1166,8 @@ <h3 id="graphql_types.mutation.Mutation.githubEndpoint--example-of-how-to-use-th
<span class="normal">63</span>
<span class="normal">64</span>
<span class="normal">65</span>
<span class="normal">66</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="normal">66</span>
<span class="normal">67</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="k">def</span> <span class="nf">githubEndpoint</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">endpoint</span><span class="p">:</span> <span class="n">GithubEndpoint</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> # Update/Insert Github Endpoint</span>
Expand Down Expand Up @@ -1210,7 +1210,7 @@ <h3 id="graphql_types.mutation.Mutation.githubEndpoint--example-of-how-to-use-th
<span class="sd"> ```</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">client</span> <span class="o">=</span> <span class="n">GraphDB</span><span class="p">()</span>
<span class="n">client</span><span class="o">.</span><span class="n">upsert_github_endpoint</span><span class="p">(</span><span class="n">endpoint</span><span class="p">)</span>
<span class="n">client</span><span class="o">.</span><span class="n">upsert_scanner_endpoint</span><span class="p">(</span><span class="n">endpoint</span><span class="p">)</span>
<span class="n">client</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
<span class="k">return</span> <span class="n">endpoint</span><span class="o">.</span><span class="n">url</span>
</code></pre></div></td></tr></table></div>
Expand All @@ -1237,15 +1237,15 @@ <h2 id="graphql_types.mutation.Mutation.product" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>api/src/graphql_types/mutation.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">79</span>
<span class="normal">80</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">80</span>
<span class="normal">81</span>
<span class="normal">82</span>
<span class="normal">83</span>
<span class="normal">84</span>
<span class="normal">85</span>
<span class="normal">86</span>
<span class="normal">87</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="normal">87</span>
<span class="normal">88</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@strawberry</span><span class="o">.</span><span class="n">mutation</span>
<span class="k">def</span> <span class="nf">product</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">urls</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Attaches a product label to a list of URLs.</span>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit afef29f

Please sign in to comment.