-
Notifications
You must be signed in to change notification settings - Fork 1
/
validator.html
265 lines (238 loc) · 9.87 KB
/
validator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Dependency validator - KrakenD API Gateway</title>
<link rel="stylesheet" href="https://www.krakend.io/dist/styles.css">
</head>
<body class="krakend">
<div class="text-center alert alert-warning">The Plugin-Tools web page is deprecated since KrakenD 2.0. To check your plugins use the <a href="/docs/extending/check-plugin/"><strong>check-plugins command</strong> »</a></div>
<div class="top-bar">
<div class="container my-2">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="https://www.krakend.io/" title="Home">
<img class="mr-4" src="https://www.krakend.io/images/logo.png" alt="" width="180">
</a>
<div class="collapse navbar-collapse" id="navbarMenu">
<ul class="mega-dropdown navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="https://www.krakend.io/features/">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.krakend.io/enterprise/">Enterprise</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.krakend.io/support/">Support</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.krakend.io/docs/overview/introduction/">Docs</a>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">About <b
class="caret"></b></a>
<ul class="dropdown-menu">
<li class="nav-item"><a class="nav-link" href="https://www.krakend.io/partners/">Partners</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.krakend.io/team/">About us</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.krakend.io/case-study/">Case
studies</a></li>
<li class="nav-item"><a class="nav-link" href="https://www.krakend.io/blog/">Blog</a></li>
</ul>
</li>
</ul>
</div>
<div class="github d-none d-lg-block">
<a class="nav-link github-button" href="https://github.com/devopsfaith/krakend"
data-show-count="true" aria-label="Star devopsfaith/krakend on GitHub">Star</a>
</div>
<div class="download d-none d-lg-block">
<a class="btn btn-sm" href="https://www.krakend.io/download/">Downloads</a>
</div>
<div class="designer d-none d-lg-block">
<a class="btn btn-sm" href="https://designer.krakend.io">Designer</a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMenu"
aria-controls="navbarMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
</div>
</div>
<div class="hero hero-plugin-validator">
<div class="banner">
<div class="overlay">
<div class="container">
<h1>Plugin validator</h1>
<p>Validate your <strong>go.sum</strong> file with a specific KrakenD version.</p>
</div>
</div>
</div>
<section class="feature-block zebra">
<div class="container">
<div class="row">
<div class="col-md-6">
<form id="uploadgosum" enctype="multipart/form-data" method="post" action="/validate/{{.KrakendVersion}}/{{.GoVersion}}">
<div class="form-group row">
<label for="krakend_version" class="col-sm-4 col-form-label">KrakenD
version:</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="krakend_version"
value="{{.KrakendVersion}}" onchange="selectVersion()">
</div>
</div>
<div class="form-group row">
<label for="go_version" class="col-sm-4 col-form-label">Go version:</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="go_version" value="{{.GoVersion}}" onchange="selectVersion()">
</div>
</div>
<div class="form-group row">
<label for="gosum" class="col-sm-4 col-form-label">Your <code>go.sum</code> file:</label>
<div class="col-sm-4">
<input type="file" id="gosum" name="go.sum">
</div>
</div>
<div class="form-group row">
<div class="col-sm-4">
<button type="submit" class="btn btn-primary" name="gosum">Upload</button>
</div>
</div>
</form>
</div>
<div class="col-md-6">
<h5>Plugin tools</h5>
<ul>
<li><a href="/validate">Validate your <code>go.sum</code></a></li>
<li><a href="/">Dependencies list</a></li>
</ul>
<p>The plugin tools help you identify problems early during the development phase of your KrakenD plugins.</p>
<p><a href="https://www.krakend.io/docs/extending/plugin-tools/" class="small"><i class="fa fa-book"></i> Read documentation</a></p>
</div>
</div>
</div>
</section>
<section class="feature-block">
<div class="container" id="validation-output">
<h3>Validation results</h3>
<pre>{{range .Result}}
{{.Name}}: {{.Expected}} was expected but we have {{.Have}}
{{ end }}</pre>
</div>
<script>
var url = "/validate";
function selectVersion() {
var x = document.getElementById("krakend_version").value;
var y = document.getElementById("go_version").value;
document.getElementById("uploadgosum").action = "/validate/"+x+"/"+y;
}
</script>
</section>
</div>
</div>
<div class="row action-bar">
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-8">
<h6><i class="fa fa-envelope mr-2"></i>Stay up to date with KrakenD releases and important updates
</h6>
</div>
<div class="col-12 col-md-4">
<form
action="https://krakend.us19.list-manage.com/subscribe/post?u=5cae4bbe9877b1adfe8fe808d&id=e5385eb57b"
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate"
target="_blank" novalidate>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text"
name="b_5cae4bbe9877b1adfe8fe808d_e5385eb57b" tabindex="-1" value=""></div>
<div class="input-group">
<input type="email" value="" name="EMAIL" class="form-control" id="mce-EMAIL"
placeholder="email address" required>
<div class="input-group-append">
<input type="submit" class="btn btn-secondary" value="Subscribe">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-5">
<img src="https://www.krakend.io/images/logo-white.png" class="pb-2" width="80%">
<p class="lead">The <strong>Ultra-High performance</strong> Open Source API Gateway with middlewares
</p>
<span>KrakenD helps application developers release features quickly by eliminating all the
complexities of SOA architectures while offering a unique performance.</span>
<div class="social">
<a href="https://www.facebook.com/apigateway" target="_blank" title="Facebook">
<i class="fab fa-facebook-official" aria-hidden="true"></i><span
class="sr-only">Facebook</span>
</a>
<a href="https://twitter.com/devopsfaith" target="_blank" class="social-btn-twitter"
title="Twitter">
<i class="fab fa-twitter" aria-hidden="true"></i><span class="sr-only">Twitter</span>
</a>
<a href="https://github.com/devopsfaith" target="_blank" class="social-btn-github"
title="GitHub">
<i class="fab fa-github" aria-hidden="true"></i><span class="sr-only">GitHub</span>
</a>
<a href="mailto:[email protected]" target="_blank" title="Send us an email">
<i class="fa fa-envelope" aria-hidden="true"></i><span class="sr-only">Mail</span>
</a>
</div>
</div>
<div class="col-md-2 offset-md-1">
<h6>by Devops Faith</h6>
<ul class="list-unstyled">
<li><a href="http://devops.faith">Devops Faith</a></li>
<li><a href="https://www.krakend.io/blog/">Blog</a></li>
<li><a href="https://medium.com/devops-faith">Medium</a></li>
<li><a href="mailto:[email protected]">Contact Us</a></li>
</ul>
<h6>More products</h6>
<ul class="list-unstyled">
<li><a href="http://api2html.com">API2HTML</a></li>
</ul>
</div>
<div class="col-md-2">
<h6>KrakenD</h6>
<ul class="list-unstyled">
<li><a href="https://www.krakend.io/features/">Features</a></li>
<li><a href="https://www.krakend.io/docs/benchmarks/overview/">Benchmarks</a></li>
<li><a href="https://www.krakend.io/download/">Download</a></li>
<li><a href="https://www.krakend.io/blog/">KrakenD Blog</a></li>
<li><a href="https://www.krakend.io/team/">Team</a></li>
<li><a href="https://www.krakend.io/case-study/">Case studies</a></li>
</ul>
</div>
<div class="col-md-2">
<h6>Support</h6>
<ul class="list-unstyled">
<li><a href="https://www.krakend.io/docs/overview/introduction">Documentation</a></li>
<li><a href="https://github.com/devopsfaith/krakend" target="_blank">Open Source</a></li>
<li><a href="https://github.com/devopsfaith/krakend/issues">Report a problem</a></li>
<li><a href="https://www.krakend.io/support/">Support</a></li>
</ul>
</div>
</div>
<div class="row copyright">
<div class="col-md-5 additional-links">
<strong>Copyright © 2017-2020 <a href="http://devops.faith">Devops Faith</a>.</strong> All
rights reserved.
</div>
<div class="col-md-7 hidden-xs">
<span class="float-right">
Made with <i class="fa fa-heart heart"></i> in Barcelona by <a
href="https://twitter.com/devopsfaith">
<img height="30px" src="https://www.krakend.io/images/devops-faith-logo-inverse.png" />
</span>
</a>
</div>
</div>
</div>
</footer>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script src="https://www.krakend.io/dist/krakend-io.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>