Documentation ¶
Overview ¶
Package credentials defines APIs for parsing SPIFFE ID.
All APIs in this package are experimental.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendH2ToNextProtos ¶ added in v1.32.0
AppendH2ToNextProtos appends h2 to next protos.
func CloneTLSConfig ¶ added in v1.32.0
CloneTLSConfig returns a shallow clone of the exported fields of cfg, ignoring the unexported sync.Once, which contains a mutex and must not be copied.
If cfg is nil, a new zero tls.Config is returned.
TODO: inline this function if possible.
func SPIFFEIDFromState ¶
func SPIFFEIDFromState(state tls.ConnectionState) *url.URL
SPIFFEIDFromState parses the SPIFFE ID from State. If the SPIFFE ID format is invalid, return nil with warning.
func WrapSyscallConn ¶ added in v1.32.0
WrapSyscallConn tries to wrap rawConn and newConn into a net.Conn that implements syscall.Conn. rawConn will be used to support syscall, and newConn will be used for read/write.
This function returns newConn if rawConn doesn't implement syscall.Conn.
Types ¶
This section is empty.