Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for formatDiscoveryPorts (0.17 sec)

  1. pkg/printers/internalversion/printers.go

    				}
    			}
    		}
    	}
    
    	ret := strings.Join(list, ",")
    	if more {
    		return fmt.Sprintf("%s + %d more...", ret, count-max)
    	}
    	return ret
    }
    
    func formatDiscoveryPorts(ports []discovery.EndpointPort) string {
    	list := []string{}
    	max := 3
    	more := false
    	count := 0
    	for _, port := range ports {
    		if len(list) < max {
    			portNum := "*"
    			if port.Port != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
Back to top