Versions in this module Expand all Collapse all v1 v1.3.4 Dec 14, 2022 v1.3.3 May 11, 2022 Changes in this version + var ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gRPC") + func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) credentials.TransportCredentials + func NewClientTLSFromFile(certFile, serverNameOverride string) (credentials.TransportCredentials, error) + func NewServerTLSFromCert(cert *gmtls.Certificate) credentials.TransportCredentials + func NewServerTLSFromFile(certFile, keyFile string) (credentials.TransportCredentials, error) + func NewTLS(c *gmtls.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 gmtls.ConnectionState + func (t TLSInfo) AuthType() string