credentials
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package credentials defines APIs for parsing SPIFFE ID.
All APIs in this package are experimental.
Index¶
- func AppendH2ToNextProtos(ps []string) []string
- func ClientHandshakeInfoFromContext(ctx context.Context) any
- func CloneTLSConfig(cfg *tls.Config) *tls.Config
- func NewClientHandshakeInfoContext(ctx context.Context, chi any) context.Context
- func SPIFFEIDFromCert(cert *x509.Certificate) *url.URL
- func SPIFFEIDFromState(state tls.ConnectionState) *url.URL
- func WrapSyscallConn(rawConn, newConn net.Conn) net.Conn
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcAppendH2ToNextProtos¶added inv1.32.0
AppendH2ToNextProtos appends h2 to next protos.
funcClientHandshakeInfoFromContext¶added inv1.38.0
ClientHandshakeInfoFromContext extracts the ClientHandshakeInfo from ctx.
funcCloneTLSConfig¶added inv1.32.0
CloneTLSConfig returns a shallow clone of the exportedfields of cfg, ignoring the unexported sync.Once, whichcontains a mutex and must not be copied.
If cfg is nil, a new zero tls.Config is returned.
TODO: inline this function if possible.
funcNewClientHandshakeInfoContext¶added inv1.38.0
NewClientHandshakeInfoContext creates a context with chi.
funcSPIFFEIDFromCert¶added inv1.33.2
func SPIFFEIDFromCert(cert *x509.Certificate) *url.URL
SPIFFEIDFromCert parses the SPIFFE ID from x509.Certificate. If the SPIFFEID format is invalid, return nil with warning.
funcSPIFFEIDFromState¶
func SPIFFEIDFromState(statetls.ConnectionState) *url.URL
SPIFFEIDFromState parses the SPIFFE ID from State. If the SPIFFE ID formatis invalid, return nil with warning.
funcWrapSyscallConn¶added inv1.32.0
WrapSyscallConn tries to wrap rawConn and newConn into a net.Conn thatimplements syscall.Conn. rawConn will be used to support syscall, and newConnwill be used for read/write.
This function returns newConn if rawConn doesn't implement syscall.Conn.
Types¶
This section is empty.
Directories¶
| Path | Synopsis |
|---|---|
Package spiffe defines APIs for working with SPIFFE Bundle Maps. | Package spiffe defines APIs for working with SPIFFE Bundle Maps. |
Package xds contains non-user facing functionality of the xds credentials. | Package xds contains non-user facing functionality of the xds credentials. |