Movatterモバイル変換


[0]ホーム

URL:


credentials

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:7Imported by:0

Details

Repository

github.com/grpc/grpc-go

Links

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

funcAppendH2ToNextProtosadded inv1.32.0

func AppendH2ToNextProtos(ps []string) []string

AppendH2ToNextProtos appends h2 to next protos.

funcClientHandshakeInfoFromContextadded inv1.38.0

func ClientHandshakeInfoFromContext(ctxcontext.Context)any

ClientHandshakeInfoFromContext extracts the ClientHandshakeInfo from ctx.

funcCloneTLSConfigadded inv1.32.0

func CloneTLSConfig(cfg *tls.Config) *tls.Config

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.

funcNewClientHandshakeInfoContextadded inv1.38.0

func NewClientHandshakeInfoContext(ctxcontext.Context, chiany)context.Context

NewClientHandshakeInfoContext creates a context with chi.

funcSPIFFEIDFromCertadded 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.

funcWrapSyscallConnadded inv1.32.0

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

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.

Source Files

View all Source files

Directories

PathSynopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp