Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewDestinationIP (0.12 sec)

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

    				//     1.2.3.4: chain
    				fallback := NewDestinationIP()
    				fallback.Map["1.2.3.4"] = ToChain("chain")
    
    				root := NewDestinationPort()
    				root.OnNoMatch = ToMatcher(fallback.Matcher)
    				return root
    			},
    			want: func() *matcher.Matcher {
    				// root (dest ip):
    				//   1.2.3.4: chain
    
    				// fallback becomes root
    				want := NewDestinationIP()
    				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

    					ExactMatchMap: &matcher.Matcher_MatcherTree_MatchMap{
    						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)
    }
    
    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