2015-09-08 11:33:10 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2015-09-14 13:38:58 +00:00
|
|
|
|
<title>/ˈTræfɪk/</title>
|
2015-09-08 11:33:10 +00:00
|
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
|
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
|
|
|
|
|
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap-theme.min.css">
|
|
|
|
|
<script src="/static/jquery-2.1.4.min.js"></script>
|
|
|
|
|
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
body {padding-bottom: 70px;}
|
|
|
|
|
.content {margin:10px;}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
2015-09-08 20:03:31 +00:00
|
|
|
|
<div class="container">
|
2015-09-14 13:38:58 +00:00
|
|
|
|
<div class="jumbotron">
|
|
|
|
|
<h1>/ˈTræfɪk/</h1>
|
|
|
|
|
</div>
|
2015-09-08 20:41:14 +00:00
|
|
|
|
|
2015-09-14 13:38:58 +00:00
|
|
|
|
<div class="row">
|
2015-09-15 14:09:21 +00:00
|
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<!-- <div class="panel-heading">Frontends</div>
|
|
|
|
|
<div class="panel-body"> -->
|
2015-09-22 23:17:21 +00:00
|
|
|
|
{{range $keyProviders, $valueProviders := .Configurations}}
|
|
|
|
|
{{range $keyFrontends, $valueFrontends := $valueProviders.Frontends}}
|
2015-09-15 14:09:21 +00:00
|
|
|
|
<div class="panel panel-primary">
|
2015-09-22 23:17:21 +00:00
|
|
|
|
<div class="panel-heading">{{$keyFrontends}} - ({{$keyProviders}})</div>
|
2015-09-15 14:09:21 +00:00
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<a class="btn btn-info" role="button" data-toggle="collapse" href="#{{$valueFrontends.Backend}}" aria-expanded="false">
|
|
|
|
|
{{$valueFrontends.Backend}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><em>Route</em></td>
|
2015-09-15 16:35:32 +00:00
|
|
|
|
<td><em>Rule</em></td>
|
2015-09-15 14:09:21 +00:00
|
|
|
|
<td><em>Value</em></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{range $keyRoutes, $valueRoutes := $valueFrontends.Routes}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{$keyRoutes}}</td>
|
2015-09-15 16:35:32 +00:00
|
|
|
|
<td>{{$valueRoutes.Rule}}</td>
|
2015-09-15 14:09:21 +00:00
|
|
|
|
<td>{{$valueRoutes.Value}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
2015-09-22 23:17:21 +00:00
|
|
|
|
{{end}}
|
2015-09-15 14:09:21 +00:00
|
|
|
|
<!-- </div> -->
|
|
|
|
|
</div>
|
2015-09-14 13:38:58 +00:00
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<!-- <div class="panel-heading">Backends</div>
|
|
|
|
|
<div class="panel-body"> -->
|
2015-09-22 23:17:21 +00:00
|
|
|
|
{{range $keyProviders, $valueProviders := .Configurations}}
|
|
|
|
|
{{range $keyBackends, $valueBackends := $valueProviders.Backends}}
|
2015-09-08 20:41:14 +00:00
|
|
|
|
<div class="panel panel-primary" id="{{$keyBackends}}">
|
2015-10-01 10:04:25 +00:00
|
|
|
|
<div class="panel-heading">{{$keyBackends}} - ({{$keyProviders}})</div>
|
2015-09-25 09:44:19 +00:00
|
|
|
|
<div class="panel-body">
|
|
|
|
|
{{with $valueBackends.LoadBalancer}}
|
|
|
|
|
<a class="btn btn-info" role="button">
|
|
|
|
|
Load Balancer: {{.Method}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{with $valueBackends.CircuitBreaker}}
|
|
|
|
|
<a class="btn btn-info" role="button">
|
|
|
|
|
Circuit Breaker: {{.Expression}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
|
</div>
|
2015-09-08 20:03:31 +00:00
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><em>Server</em></td>
|
|
|
|
|
<td><em>URL</em></td>
|
2015-09-11 07:59:29 +00:00
|
|
|
|
<td><em>Weight</em></td>
|
2015-09-08 20:03:31 +00:00
|
|
|
|
</tr>
|
|
|
|
|
{{range $keyServers, $valueServers := $valueBackends.Servers}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{$keyServers}}</td>
|
2015-09-24 20:17:40 +00:00
|
|
|
|
<td><code><A href="{{$valueServers.URL}}">{{$valueServers.URL}}</A></code></td>
|
2015-09-11 07:59:29 +00:00
|
|
|
|
<td>{{$valueServers.Weight}}</td>
|
2015-09-08 20:03:31 +00:00
|
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
{{end}}
|
2015-09-22 23:17:21 +00:00
|
|
|
|
{{end}}
|
2015-09-14 13:38:58 +00:00
|
|
|
|
<!-- </div> -->
|
2015-09-08 20:03:31 +00:00
|
|
|
|
</div>
|
2015-09-08 11:33:10 +00:00
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-09-08 20:41:14 +00:00
|
|
|
|
|
2015-09-08 11:33:10 +00:00
|
|
|
|
</body>
|
2015-09-10 14:46:27 +00:00
|
|
|
|
</html>
|