MCPcopy
hub / github.com/grpc/grpc-go / altsHandshaker

Struct altsHandshaker

credentials/alts/internal/handshaker/handshaker.go:115–128  ·  view source on GitHub ↗

altsHandshaker is used to complete an ALTS handshake between client and server. This handshaker talks to the ALTS handshaker service in the metadata server.

Source from the content-addressed store, hash-verified

113// server. This handshaker talks to the ALTS handshaker service in the metadata
114// server.
115type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected