Fix golint failures under e2e/framework/metrics

This commit is contained in:
Kenichi Omichi
2019-02-13 01:46:04 +00:00
parent dbe669aeb1
commit 89f6f1d0cc
12 changed files with 86 additions and 67 deletions

View File

@@ -16,19 +16,21 @@ limitations under the License.
package metrics
// ControllerManagerMetrics is metrics for controller manager
type ControllerManagerMetrics Metrics
// Equal returns true if all metrics are the same as the arguments.
func (m *ControllerManagerMetrics) Equal(o ControllerManagerMetrics) bool {
return (*Metrics)(m).Equal(Metrics(o))
}
func NewControllerManagerMetrics() ControllerManagerMetrics {
func newControllerManagerMetrics() ControllerManagerMetrics {
result := NewMetrics()
return ControllerManagerMetrics(result)
}
func parseControllerManagerMetrics(data string) (ControllerManagerMetrics, error) {
result := NewControllerManagerMetrics()
result := newControllerManagerMetrics()
if err := parseMetrics(data, (*Metrics)(&result)); err != nil {
return ControllerManagerMetrics{}, err
}