Documentation ¶
Index ¶
- type Instance
- func (i Instance) AfterTLSTermination() Instance
- func (i Instance) IsGRPC() bool
- func (i Instance) IsHTTP() bool
- func (i Instance) IsHTTP2() bool
- func (i Instance) IsHTTPOrSniffed() bool
- func (i Instance) IsHTTPS() bool
- func (i Instance) IsTCP() bool
- func (i Instance) IsTLS() bool
- func (i Instance) IsUnsupported() bool
- func (i Instance) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance string
Instance defines network protocols for ports
const ( // GRPC declares that the port carries gRPC traffic. GRPC Instance = "GRPC" // GRPCWeb declares that the port carries gRPC traffic. GRPCWeb Instance = "GRPC-Web" // HTTP declares that the port carries HTTP/1.1 traffic. // Note that HTTP/1.0 or earlier may not be supported by the proxy. HTTP Instance = "HTTP" // HTTP_PROXY declares that the port is a generic outbound proxy port. // Note that this is currently applicable only for defining sidecar egress listeners. // nolint HTTP_PROXY Instance = "HTTP_PROXY" // HTTP2 declares that the port carries HTTP/2 traffic. HTTP2 Instance = "HTTP2" // HTTPS declares that the port carries HTTPS traffic. HTTPS Instance = "HTTPS" // TCP declares the port uses TCP. // This is the default protocol for a service port. TCP Instance = "TCP" // TLS declares that the port carries TLS traffic. // TLS traffic is assumed to contain SNI as part of the handshake. TLS Instance = "TLS" // UDP declares that the port uses UDP. // Note that UDP protocol is not currently supported by the proxy. UDP Instance = "UDP" // Mongo declares that the port carries MongoDB traffic. Mongo Instance = "Mongo" // Redis declares that the port carries Redis traffic. Redis Instance = "Redis" // MySQL declares that the port carries MySQL traffic. MySQL Instance = "MySQL" // HBONE declares that the port carries HBONE traffic. // This cannot be declared by Services, but is used for some internal code that uses Protocol HBONE Instance = "HBONE" // Unsupported - value to signify that the protocol is unsupported. Unsupported Instance = "UnsupportedProtocol" )
func (Instance) AfterTLSTermination ¶
AfterTLSTermination returns the protocol that will be used if TLS is terminated on the current protocol.
func (Instance) IsHTTPOrSniffed ¶
IsHTTPOrSniffed is true for protocols that use HTTP as transport protocol, or *can* use it if sniffed to be HTTP
func (Instance) IsUnsupported ¶
Click to show internal directories.
Click to hide internal directories.