istio: istio.io/istio/pkg/config/protocol Index | Files

package protocol

import "istio.io/istio/pkg/config/protocol"

Index

Package Files

instance.go

type Instance Uses

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"
    // 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 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"
    // Unsupported - value to signify that the protocol is unsupported.
    Unsupported Instance = "UnsupportedProtocol"
)

func Parse Uses

func Parse(s string) Instance

Parse from string ignoring case

func (Instance) IsGRPC Uses

func (i Instance) IsGRPC() bool

IsGRPC is true for GRCP protocols.

func (Instance) IsHTTP Uses

func (i Instance) IsHTTP() bool

IsHTTP is true for protocols that use HTTP as transport protocol

func (Instance) IsHTTP2 Uses

func (i Instance) IsHTTP2() bool

IsHTTP2 is true for protocols that use HTTP/2 as transport protocol

func (Instance) IsTCP Uses

func (i Instance) IsTCP() bool

IsTCP is true for protocols that use TCP as transport protocol

func (Instance) IsTLS Uses

func (i Instance) IsTLS() bool

IsTLS is true for protocols on top of TLS (e.g. HTTPS)

func (Instance) IsUnsupported Uses

func (i Instance) IsUnsupported() bool

Package protocol imports 1 packages (graph) and is imported by 36 packages. Updated 2019-09-14. Refresh now. Tools for package owners.