Versions in this module Expand all Collapse all v1 v1.0.7 Oct 29, 2015 v1.0.6 Sep 13, 2015 Changes in this version + func NewContext(ctx context.Context, authInfo AuthInfo) context.Context + type AuthInfo interface + AuthType func() string + func FromContext(ctx context.Context) (authInfo AuthInfo, ok bool) + type Credentials interface + GetRequestMetadata func(ctx context.Context, uri ...string) (map[string]string, error) + RequireTransportSecurity func() bool + type ProtocolInfo struct + ProtocolVersion string + SecurityProtocol string + SecurityVersion string + type TLSInfo struct + func (t TLSInfo) AuthType() string + type TransportAuthenticator interface + ClientHandshake func(addr string, rawConn net.Conn, timeout time.Duration) (net.Conn, AuthInfo, error) + Info func() ProtocolInfo + ServerHandshake func(rawConn net.Conn) (net.Conn, AuthInfo, error) + func NewClientTLSFromCert(cp *x509.CertPool, serverName string) TransportAuthenticator + func NewClientTLSFromFile(certFile, serverName string) (TransportAuthenticator, error) + func NewServerTLSFromCert(cert *tls.Certificate) TransportAuthenticator + func NewServerTLSFromFile(certFile, keyFile string) (TransportAuthenticator, error) + func NewTLS(c *tls.Config) TransportAuthenticator