vitess.io/vitess@v0.16.2/go/vt/vtorc/logic/topology_recovery_status.go (about)

     1  /*
     2  Copyright 2022 The Vitess Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreedto in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package logic
    18  
    19  // TopologyRecoveriesTemplate is the HTML to use to display the
    20  // topology recovery steps list object
    21  const TopologyRecoveriesTemplate = `
    22  <style>
    23    table {
    24      border-collapse: collapse;
    25    }
    26    td, th {
    27      border: 1px solid #999;
    28      padding: 0.2rem;
    29    }
    30  </style>
    31  <table>
    32    <tr>
    33      <th colspan="4">Recent Recoveries Performed</th>
    34    </tr>
    35    <tr>
    36      <th>Recovery ID</th>
    37      <th>Failure Type</th>
    38      <th>Instance</th>
    39    </tr>
    40    {{range $i, $recovery := .}}
    41    <tr>
    42      <td>{{$recovery.ID}}</td>
    43      <td>{{$recovery.AnalysisEntry.Analysis}}</td>
    44      <td>{{$recovery.AnalysisEntry.AnalyzedInstanceKey}}</td>
    45    </tr>
    46    {{end}}
    47  </table>
    48  `