Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Fprintf (0.2 sec)

  1. istioctl/pkg/authz/listener.go

    	parts := re.FindStringSubmatch(name)
    	if len(parts) != 4 {
    		log.Errorf("failed to parse policy name: %s", name)
    		return "", ""
    	}
    	return fmt.Sprintf("%s.%s", parts[2], parts[1]), parts[3]
    }
    
    // Print prints the AuthorizationPolicy in the listener.
    func Print(writer io.Writer, listeners []*listener.Listener) {
    	parsedListeners := parse(listeners)
    	if parsedListeners == nil {
    		return
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/listener.go

    			})
    			for _, match := range matches {
    				if includeConfigType {
    					name := fmt.Sprintf("listener/%s", l.Name)
    					fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n", name, strings.Join(addresses, ","), port, match.match, match.destination)
    				} else {
    					fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", strings.Join(addresses, ","), port, match.match, match.destination)
    				}
    			}
    		} else {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  3. internal/http/listener.go

    			if opts.Trace != nil {
    				opts.Trace(fmt.Sprint("listenCfg.Listen: ", e.Error()))
    			}
    
    			listenErrs[i] = e
    			continue
    		}
    
    		tcpListener, ok := l.(*net.TCPListener)
    		if !ok {
    			listenErrs[i] = fmt.Errorf("unexpected listener type found %v, expected net.TCPListener", l)
    			if opts.Trace != nil {
    				opts.Trace(fmt.Sprint("net.TCPListener: ", listenErrs[i].Error()))
    			}
    			continue
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/listener.go

    import (
    	"bytes"
    	"fmt"
    
    	"github.com/pmezard/go-difflib/difflib"
    
    	// Force import protos
    	_ "istio.io/istio/pilot/pkg/xds/filters"
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // ListenerDiff prints a diff between Istiod and Envoy listeners to the passed writer
    func (c *Comparator) ListenerDiff() error {
    	envoyBytes, istiodBytes := &bytes.Buffer{}, &bytes.Buffer{}
    	envoyListenerDump, err := c.envoy.GetDynamicListenerDump(true)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 04 20:29:08 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top