Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for comparePods (0.11 sec)

  1. pilot/pkg/config/monitor/monitor.go

    		log.Warnf("Failed to delete config (%+v): %v ", *c, err)
    	}
    }
    
    // compareIDs compares the IDs (i.e. Namespace, GroupVersionKind, and Name) of the two configs and returns
    // 0 if a == b, -1 if a < b, and 1 if a > b. Used for sorting config arrays.
    func compareIDs(a, b *config.Config) int {
    	return strings.Compare(a.Key(), b.Key())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. pilot/pkg/config/monitor/file_snapshot.go

    type byKey []*config.Config
    
    func (rs byKey) Len() int {
    	return len(rs)
    }
    
    func (rs byKey) Swap(i, j int) {
    	rs[i], rs[j] = rs[j], rs[i]
    }
    
    func (rs byKey) Less(i, j int) bool {
    	return compareIDs(rs[i], rs[j]) < 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top