kmp

package
v0.0.0-...-9137930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package kmp wraps github.com/google/go-cmp with custom Comparers for frequently used kubernetes resources that have unexported fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeDiff

func SafeDiff(x, y interface{}, opts ...cmp.Option) (diff string, err error)

SafeDiff wraps cmp.Diff but recovers from panics and uses custom Comparers for: * k8s.io/apimachinery/pkg/api/resource.Quantity

func SafeEqual

func SafeEqual(x, y interface{}, opts ...cmp.Option) (equal bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL