equality

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareOptionForHealthCheckPolicy

func CompareOptionForHealthCheckPolicy() cmp.Option

func CompareOptionForVirtualGatewayHealthCheckPolicy added in v1.1.0

func CompareOptionForVirtualGatewayHealthCheckPolicy() cmp.Option

func CompareOptionForVirtualGatewaySpec added in v1.1.0

func CompareOptionForVirtualGatewaySpec() cmp.Option

func CompareOptionForVirtualNodeSpec

func CompareOptionForVirtualNodeSpec() cmp.Option

func IgnoreFakeClientPopulatedFields

func IgnoreFakeClientPopulatedFields() cmp.Option

IgnoreFakeClientPopulatedFields is an option to ignore fields populated by fakeK8sClient for a comparison. Use this when comparing k8s objects in test cases. These fields are ignored: TypeMeta and ObjectMeta.ResourceVersion

func IgnoreLeftHandUnset

func IgnoreLeftHandUnset(typ interface{}, fields ...string) cmp.Option

IgnoreLeftHandUnset is an option that ignores struct fields that are unset on the left hand side of a comparison. Note:

  1. for map and slices, only nil value is considered to be unset, non-nil but empty is not considered as unset.
  2. for struct pointers, nil value is considered to be unset

Types

This section is empty.

Jump to

Keyboard shortcuts

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