Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewSourceIP (0.13 sec)

  1. pilot/pkg/networking/core/match/match_test.go

    				//       fallback: chain
    				leaf := NewSourceIP()
    				leaf.Map["1.2.3.4"] = ToChain("chain")
    
    				inner := NewDestinationIP()
    				inner.OnNoMatch = ToMatcher(leaf.Matcher)
    
    				root := NewDestinationPort()
    				root.OnNoMatch = ToMatcher(inner.Matcher)
    				return root
    			},
    			want: func() *matcher.Matcher {
    				// src port
    				// 15001: chain
    				want := NewSourceIP()
    				want.Map["1.2.3.4"] = ToChain("chain")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/match/match.go

    						Map: m,
    					},
    				},
    			},
    		},
    		OnNoMatch: nil,
    	}
    	return Mapper{Matcher: match, Map: m}
    }
    
    func NewDestinationIP() Mapper {
    	return newMapper(DestinationIP)
    }
    
    func NewSourceIP() Mapper {
    	return newMapper(SourceIP)
    }
    
    func NewDestinationPort() Mapper {
    	return newMapper(DestinationPort)
    }
    
    type ProtocolMatch struct {
    	TCP, HTTP *matcher.Matcher_OnMatch
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top