internal

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalGrpcConfig

func GetGlobalGrpcConfig(conf *config.Local) []grpc.DialOption

func SPIFFEIDFromCert

func SPIFFEIDFromCert(cert *x509.Certificate) *url.URL

func SPIFFEIDFromState

func SPIFFEIDFromState(state utls.ConnectionState) *url.URL

func WrapSyscallConn

func WrapSyscallConn(rawConn, newConn net.Conn) net.Conn

Types

type TLSInfo

type TLSInfo struct {
	State utls.ConnectionState
	credentials.CommonAuthInfo
	// This API is experimental.
	SPIFFEID *url.URL
}

func (TLSInfo) AuthType

func (t TLSInfo) AuthType() string

AuthType returns the type of TLSInfo as a string.

func (TLSInfo) GetSecurityValue

func (t TLSInfo) GetSecurityValue() credentials.ChannelzSecurityValue

GetSecurityValue returns security info requested by channelz.

Jump to

Keyboard shortcuts

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