common

package
v10.308.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 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