common

package
v10.317.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractExtension

func ExtractExtension(oid asn1.ObjectIdentifier, extensions []pkix.Extension) (bool, []byte)

ExtractExtension returns true and the value of the given oid If any.

func GetTLSServerName

func GetTLSServerName(
	addrAndPort string,
	service *policy.ApplicationService,
) (name string, err error)

GetTLSServerName provides the server name to use in TLS config based on service configuration and destination IP.

Types

type ListenerType

type ListenerType int

ListenerType are the types of listeners that can be used.

const (
	TCPApplication ListenerType = iota
	TCPNetwork
	HTTPApplication
	HTTPNetwork
	HTTPSApplication
	HTTPSNetwork
)

Values of ListenerType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL