Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SortFunc (0.12 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/services.go

    	w := c.tabwriter()
    	zDump := c.ztunnelDump
    
    	workloadsByUID := slices.GroupUnique(zDump.Workloads, func(t *ZtunnelWorkload) string {
    		return t.UID
    	})
    	svcs := slices.Filter(zDump.Services, filter.Verify)
    	slices.SortFunc(svcs, func(a, b *ZtunnelService) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(a.Name, b.Name); r != 0 {
    			return r
    		}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 24 09:07:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/policies.go

    func (c *ConfigWriter) PrintPolicySummary(filter PolicyFilter) error {
    	w := c.tabwriter()
    	zDump := c.ztunnelDump
    
    	pols := slices.Filter(zDump.Policies, filter.Verify)
    	slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    	fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE")
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    	workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int {
    		if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Info.Namespace, b.Info.Namespace)
    	})
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    			}
    			writer := cmd.OutOrStdout()
    			w := new(tabwriter.Writer).Init(writer, 0, 8, 5, ' ', 0)
    			if len(gws.Items) == 0 {
    				fmt.Fprintln(writer, "No waypoints found.")
    				return nil
    			}
    			slices.SortFunc(gws.Items, func(i, j gateway.Gateway) int {
    				if r := cmp.Compare(i.Namespace, j.Namespace); r != 0 {
    					return r
    				}
    				return cmp.Compare(i.Name, j.Name)
    			})
    			filteredGws := make([]gateway.Gateway, 0)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle.go

    						RuleID:       rule.ID,
    						Due:          due,
    						StorageClass: rule.Transition.StorageClass,
    					})
    				}
    			}
    		}
    	}
    
    	if len(events) > 0 {
    		slices.SortFunc(events, func(a, b Event) int {
    			// Prefer Expiration over Transition for both current
    			// and noncurrent versions when,
    			// - now is past the expected time to action
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    			tag:      tagName,
    		}
    		rawTags[key] = tagDesc
    	}
    	for k := range rawTags {
    		if k.tag != "" {
    			delete(rawTags, uniqTag{revision: k.revision})
    		}
    	}
    	tags := slices.SortFunc(maps.Values(rawTags), func(a, b tagDescription) int {
    		if r := cmp.Compare(a.Revision, b.Revision); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Tag, b.Tag)
    	})
    
    	switch outputFormat {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. api/go1.21.txt

    pkg slices, func Reverse[$0 interface{ ~[]$1 }, $1 interface{}]($0) #58565
    pkg slices, func Sort[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) #60091
    pkg slices, func SortFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) #60091
    pkg slices, func SortStableFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) #60091
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  8. src/archive/zip/reader.go

    				} else {
    					entry := fileListEntry{
    						name:  dir,
    						file:  nil,
    						isDir: true,
    					}
    					r.fileList = append(r.fileList, entry)
    				}
    			}
    		}
    
    		slices.SortFunc(r.fileList, func(a, b fileListEntry) int {
    			return fileEntryCompare(a.name, b.name)
    		})
    	})
    }
    
    func fileEntryCompare(x, y string) int {
    	xdir, xelem, _ := split(x)
    	ydir, yelem, _ := split(y)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top