altsHandshaker is used to complete an ALTS handshake between client and server. This handshaker talks to the ALTS handshaker service in the metadata server.
| 113 | // server. This handshaker talks to the ALTS handshaker service in the metadata |
| 114 | // server. |
| 115 | type altsHandshaker struct { |
| 116 | // RPC stream used to access the ALTS Handshaker service. |
| 117 | stream altsgrpc.HandshakerService_DoHandshakeClient |
| 118 | // the connection to the peer. |
| 119 | conn net.Conn |
| 120 | // a virtual connection to the ALTS handshaker service. |
| 121 | clientConn *grpc.ClientConn |
| 122 | // client handshake options. |
| 123 | clientOpts *ClientHandshakerOptions |
| 124 | // server handshake options. |
| 125 | serverOpts *ServerHandshakerOptions |
| 126 | // defines the side doing the handshake, client or server. |
| 127 | side core.Side |
| 128 | } |
| 129 | |
| 130 | // NewClientHandshaker creates a core.Handshaker that performs a client-side |
| 131 | // ALTS handshake by acting as a proxy between the peer and the ALTS handshaker |
nothing calls this directly
no outgoing calls
no test coverage detected