Versions in this module Expand all Collapse all v2 v2.3.3 Oct 19, 2023 Changes in this version + var ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gRPC") + func NewClientTLSFromCert(cp *cmx509.CertPool, serverNameOverride string) credentials.TransportCredentials + func NewClientTLSFromFile(certFile, serverNameOverride string) (credentials.TransportCredentials, error) + func NewServerTLSFromCert(cert *cmtls.Certificate) credentials.TransportCredentials + func NewServerTLSFromFile(certFile, keyFile string) (credentials.TransportCredentials, error) + func NewTLS(c *cmtls.Config) credentials.TransportCredentials + type AuthInfo interface + AuthType func() string + type PerRPCCredentials interface + GetRequestMetadata func(ctx context.Context, uri ...string) (map[string]string, error) + RequireTransportSecurity func() bool + type ProtocolInfo struct + ProtocolVersion string + SecurityProtocol string + SecurityVersion string + ServerName string + type TLSInfo struct + State cmtls.ConnectionState + func (t TLSInfo) AuthType() string