Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DestinationPort = &xds.TypedExtensionConfig{ Name: "port", TypedConfig: protoconv.MessageToAny(&network.DestinationPortInput{}), } DestinationIP = &xds.TypedExtensionConfig{ Name: "ip", TypedConfig: protoconv.MessageToAny(&network.DestinationIPInput{}), } SourceIP = &xds.TypedExtensionConfig{ Name: "source-ip", TypedConfig: protoconv.MessageToAny(&network.SourceIPInput{}), } SNI = &xds.TypedExtensionConfig{ Name: "sni", TypedConfig: protoconv.MessageToAny(&network.ServerNameInput{}), } ApplicationProtocolInput = &xds.TypedExtensionConfig{ Name: "application-protocol", TypedConfig: protoconv.MessageToAny(&network.ApplicationProtocolInput{}), } TransportProtocolInput = &xds.TypedExtensionConfig{ Name: "transport-protocol", TypedConfig: protoconv.MessageToAny(&network.TransportProtocolInput{}), } )
Functions ¶
func NewAppProtocol ¶
func NewAppProtocol(pm ProtocolMatch) *matcher.Matcher
func ToChain ¶
func ToChain(name string) *matcher.Matcher_OnMatch
Types ¶
type Mapper ¶
type Mapper struct { *matcher.Matcher Map map[string]*matcher.Matcher_OnMatch }
func NewDestinationIP ¶
func NewDestinationIP() Mapper
func NewDestinationPort ¶
func NewDestinationPort() Mapper
func NewSourceIP ¶
func NewSourceIP() Mapper
func (Mapper) BuildMatcher ¶
BuildMatcher cleans the entire match tree to avoid empty maps and returns a viable top-level matcher. Note: this mutates the internal mappers/matchers that make up the tree.
type ProtocolMatch ¶
type ProtocolMatch struct {
TCP, HTTP *matcher.Matcher_OnMatch
}
Click to show internal directories.
Click to hide internal directories.