github.com/cilium/cilium@v1.16.2/pkg/bgpv1/manager/reconcilerv2/zz_generated.deepequal.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // SPDX-License-Identifier: Apache-2.0
     5  // Copyright Authors of Cilium
     6  
     7  // Code generated by deepequal-gen. DO NOT EDIT.
     8  
     9  package reconcilerv2
    10  
    11  // DeepEqual is an autogenerated deepequal function, deeply comparing the
    12  // receiver with other. in must be non-nil.
    13  func (in *PeerData) DeepEqual(other *PeerData) bool {
    14  	if other == nil {
    15  		return false
    16  	}
    17  
    18  	if (in.Peer == nil) != (other.Peer == nil) {
    19  		return false
    20  	} else if in.Peer != nil {
    21  		if !in.Peer.DeepEqual(other.Peer) {
    22  			return false
    23  		}
    24  	}
    25  
    26  	if (in.Config == nil) != (other.Config == nil) {
    27  		return false
    28  	} else if in.Config != nil {
    29  		if !in.Config.DeepEqual(other.Config) {
    30  			return false
    31  		}
    32  	}
    33  
    34  	if in.Password != other.Password {
    35  		return false
    36  	}
    37  
    38  	return true
    39  }