Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Equaler (0.12 sec)

  1. pkg/kube/krt/internal.go

    }
    
    // equal checks if two objects are equal. This is done through a variety of different methods, depending on the input type.
    func equal[O any](a, b O) bool {
    	ak, ok := any(a).(Equaler[O])
    	if ok {
    		return ak.Equals(b)
    	}
    	pk, ok := any(&a).(Equaler[O])
    	if ok {
    		return pk.Equals(b)
    	}
    	// Future improvement: add a default Kubernetes object implementation
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. pkg/kube/krt/core.go

    // If implemented, this can be used to determine the Key for an object
    type ResourceNamer interface {
    	ResourceName() string
    }
    
    // Equaler is an optional interface that can be implemented by collection types.
    // If implemented, this will be used to determine if an object changed.
    type Equaler[K any] interface {
    	Equals(k K) bool
    }
    
    // LabelSelectorer is an optional interface that can be implemented by collection types.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top