Skip to content

Commit

Permalink
Merge pull request #133 from joselsegura/fixed_more_info_type
Browse files Browse the repository at this point in the history
Fix type of the MoreInfo field
  • Loading branch information
Dmitrii Misharov authored Nov 9, 2020
2 parents 7ac13c5 + ade79d3 commit 3664cb2
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 114 deletions.
4 changes: 1 addition & 3 deletions docs/packages/types/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@
<td class="doc"></td>
<td class="code"><pre><code><div class="keyword">package</div> <div class="ident">types</div><div class="operator"></div>

<div class="keyword">import</div> <div class="literal">&#34;encoding/json&#34;</div><div class="operator"></div>

</code></pre></td>
</tr>

Expand All @@ -131,7 +129,7 @@
<div class="ident">Summary</div> <div class="ident">string</div> <div class="literal">`json:&#34;summary&#34;`</div><div class="operator"></div>
<div class="ident">Reason</div> <div class="ident">string</div> <div class="literal">`json:&#34;reason&#34;`</div><div class="operator"></div>
<div class="ident">Resolution</div> <div class="ident">string</div> <div class="literal">`json:&#34;resolution&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">json</div><div class="operator">.</div><div class="ident">RawMessage</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">string</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="ident">Plugin</div> <div class="ident">RulePluginInfo</div> <div class="literal">`json:&#34;plugin&#34;`</div><div class="operator"></div>
<div class="ident">ErrorKeys</div> <div class="keyword">map</div><div class="operator">[</div><div class="ident">string</div><div class="operator">]</div><div class="ident">RuleErrorKeyContent</div> <div class="literal">`json:&#34;error_keys&#34;`</div><div class="operator"></div>
<div class="ident">HasReason</div> <div class="ident">bool</div><div class="operator"></div>
Expand Down
44 changes: 22 additions & 22 deletions docs/packages/types/types.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@
<td class="doc"><p>Rule represents the content of rule table</p>
</td>
<td class="code"><pre><code><div class="keyword">type</div> <div class="ident">Rule</div> <div class="keyword">struct</div> <div class="operator">{</div>
<div class="ident">Module</div> <div class="ident">RuleID</div> <div class="literal">`json:&#34;module&#34;`</div><div class="operator"></div>
<div class="ident">Name</div> <div class="ident">string</div> <div class="literal">`json:&#34;name&#34;`</div><div class="operator"></div>
<div class="ident">Summary</div> <div class="ident">string</div> <div class="literal">`json:&#34;summary&#34;`</div><div class="operator"></div>
<div class="ident">Reason</div> <div class="ident">string</div> <div class="literal">`json:&#34;reason&#34;`</div><div class="operator"></div>
<div class="ident">Resolution</div> <div class="ident">string</div> <div class="literal">`json:&#34;resolution&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">json</div><div class="operator">.</div><div class="ident">RawMessage</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="ident">Module</div> <div class="ident">RuleID</div> <div class="literal">`json:&#34;module&#34;`</div><div class="operator"></div>
<div class="ident">Name</div> <div class="ident">string</div> <div class="literal">`json:&#34;name&#34;`</div><div class="operator"></div>
<div class="ident">Summary</div> <div class="ident">string</div> <div class="literal">`json:&#34;summary&#34;`</div><div class="operator"></div>
<div class="ident">Reason</div> <div class="ident">string</div> <div class="literal">`json:&#34;reason&#34;`</div><div class="operator"></div>
<div class="ident">Resolution</div> <div class="ident">string</div> <div class="literal">`json:&#34;resolution&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">string</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="operator">}</div><div class="operator"></div>

</code></pre></td>
Expand Down Expand Up @@ -348,22 +348,22 @@
<td class="doc"><p>RuleWithContent represents a rule with content, basically the mix of rule and rule<em>error</em>key tables' content</p>
</td>
<td class="code"><pre><code><div class="keyword">type</div> <div class="ident">RuleWithContent</div> <div class="keyword">struct</div> <div class="operator">{</div>
<div class="ident">Module</div> <div class="ident">RuleID</div> <div class="literal">`json:&#34;module&#34;`</div><div class="operator"></div>
<div class="ident">Name</div> <div class="ident">string</div> <div class="literal">`json:&#34;name&#34;`</div><div class="operator"></div>
<div class="ident">Summary</div> <div class="ident">string</div> <div class="literal">`json:&#34;summary&#34;`</div><div class="operator"></div>
<div class="ident">Reason</div> <div class="ident">string</div> <div class="literal">`json:&#34;reason&#34;`</div><div class="operator"></div>
<div class="ident">Resolution</div> <div class="ident">string</div> <div class="literal">`json:&#34;resolution&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">json</div><div class="operator">.</div><div class="ident">RawMessage</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="ident">ErrorKey</div> <div class="ident">ErrorKey</div> <div class="literal">`json:&#34;error_key&#34;`</div><div class="operator"></div>
<div class="ident">Condition</div> <div class="ident">string</div> <div class="literal">`json:&#34;condition&#34;`</div><div class="operator"></div>
<div class="ident">Description</div> <div class="ident">string</div> <div class="literal">`json:&#34;description&#34;`</div><div class="operator"></div>
<div class="ident">TotalRisk</div> <div class="ident">int</div> <div class="literal">`json:&#34;total_risk&#34;`</div><div class="operator"></div>
<div class="ident">RiskOfChange</div> <div class="ident">int</div> <div class="literal">`json:&#34;risk_of_change&#34;`</div><div class="operator"></div>
<div class="ident">PublishDate</div> <div class="ident">time</div><div class="operator">.</div><div class="ident">Time</div> <div class="literal">`json:&#34;publish_date&#34;`</div><div class="operator"></div>
<div class="ident">Active</div> <div class="ident">bool</div> <div class="literal">`json:&#34;active&#34;`</div><div class="operator"></div>
<div class="ident">Internal</div> <div class="ident">bool</div> <div class="literal">`json:&#34;internal&#34;`</div><div class="operator"></div>
<div class="ident">Generic</div> <div class="ident">string</div> <div class="literal">`json:&#34;generic&#34;`</div><div class="operator"></div>
<div class="ident">Tags</div> <div class="operator">[</div><div class="operator">]</div><div class="ident">string</div> <div class="literal">`json:&#34;tags&#34;`</div><div class="operator"></div>
<div class="ident">Module</div> <div class="ident">RuleID</div> <div class="literal">`json:&#34;module&#34;`</div><div class="operator"></div>
<div class="ident">Name</div> <div class="ident">string</div> <div class="literal">`json:&#34;name&#34;`</div><div class="operator"></div>
<div class="ident">Summary</div> <div class="ident">string</div> <div class="literal">`json:&#34;summary&#34;`</div><div class="operator"></div>
<div class="ident">Reason</div> <div class="ident">string</div> <div class="literal">`json:&#34;reason&#34;`</div><div class="operator"></div>
<div class="ident">Resolution</div> <div class="ident">string</div> <div class="literal">`json:&#34;resolution&#34;`</div><div class="operator"></div>
<div class="ident">MoreInfo</div> <div class="ident">string</div> <div class="literal">`json:&#34;more_info&#34;`</div><div class="operator"></div>
<div class="ident">ErrorKey</div> <div class="ident">ErrorKey</div> <div class="literal">`json:&#34;error_key&#34;`</div><div class="operator"></div>
<div class="ident">Condition</div> <div class="ident">string</div> <div class="literal">`json:&#34;condition&#34;`</div><div class="operator"></div>
<div class="ident">Description</div> <div class="ident">string</div> <div class="literal">`json:&#34;description&#34;`</div><div class="operator"></div>
<div class="ident">TotalRisk</div> <div class="ident">int</div> <div class="literal">`json:&#34;total_risk&#34;`</div><div class="operator"></div>
<div class="ident">RiskOfChange</div> <div class="ident">int</div> <div class="literal">`json:&#34;risk_of_change&#34;`</div><div class="operator"></div>
<div class="ident">PublishDate</div> <div class="ident">time</div><div class="operator">.</div><div class="ident">Time</div> <div class="literal">`json:&#34;publish_date&#34;`</div><div class="operator"></div>
<div class="ident">Active</div> <div class="ident">bool</div> <div class="literal">`json:&#34;active&#34;`</div><div class="operator"></div>
<div class="ident">Internal</div> <div class="ident">bool</div> <div class="literal">`json:&#34;internal&#34;`</div><div class="operator"></div>
<div class="ident">Generic</div> <div class="ident">string</div> <div class="literal">`json:&#34;generic&#34;`</div><div class="operator"></div>
<div class="ident">Tags</div> <div class="operator">[</div><div class="operator">]</div><div class="ident">string</div> <div class="literal">`json:&#34;tags&#34;`</div><div class="operator"></div>
<div class="operator">}</div><div class="operator"></div>

</code></pre></td>
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.13

require (
github.com/RedHatInsights/cloudwatch v0.0.0-20200512151223-b0b55757a24b
github.com/RedHatInsights/insights-results-aggregator-data v0.0.0-20201014142608-de97c4b07d5c
github.com/RedHatInsights/insights-results-aggregator-data v0.0.0-20201109115720-126bd0348556
github.com/Shopify/sarama v1.27.1
github.com/aws/aws-sdk-go v1.35.7
github.com/getkin/kin-openapi v0.22.1
Expand Down
Loading

0 comments on commit 3664cb2

Please sign in to comment.