package credentials
Import Path
google.golang.org/grpc/internal/credentials (on go.dev)
Dependency Relation
imports 7 packages, and imported by 2 packages
Involved Source Files
credentials.go
Package credentials defines APIs for parsing SPIFFE ID.
All APIs in this package are experimental.
syscallconn.go
util.go
Package-Level Functions (total 7)
AppendH2ToNextProtos appends h2 to next protos.
ClientHandshakeInfoFromContext extracts the ClientHandshakeInfo from ctx.
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.
NewClientHandshakeInfoContext creates a context with chi.
SPIFFEIDFromCert parses the SPIFFE ID from x509.Certificate. If the SPIFFE
ID format is invalid, return nil with warning.
SPIFFEIDFromState parses the SPIFFE ID from State. If the SPIFFE ID format
is invalid, return nil with warning.
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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |