Package-Level Type Names (total 3, in which 2 are exported)
/* sort exporteds by: | */
ClientHandshakerOptions contains the client handshaker options that can
provided by the caller.
ClientIdentity is the handshaker client local identity.
RPCVersions specifies the gRPC versions accepted by the client.
TargetName is the server service account name for secure name
checking.
TargetServiceAccounts contains a list of expected target service
accounts. One of these accounts should match one of the accounts in
the handshaker results. Otherwise, the handshake fails.
func DefaultClientHandshakerOptions() *ClientHandshakerOptions
func NewClientHandshaker(ctx context.Context, conn *grpc.ClientConn, c net.Conn, opts *ClientHandshakerOptions) (core.Handshaker, error)
altsHandshaker is used to complete a ALTS handshaking between client and
server. This handshaker talks to the ALTS handshaker service in the metadata
server.
client handshake options.
the connection to the peer.
server handshake options.
defines the side doing the handshake, client or server.
RPC stream used to access the ALTS Handshaker service.
ClientHandshake starts and completes a client ALTS handshaking for GCP. Once
done, ClientHandshake returns a secure connection.
Close terminates the Handshaker. It should be called when the caller obtains
the secure connection.
ServerHandshake starts and completes a server ALTS handshaking for GCP. Once
done, ServerHandshake returns a secure connection.
(*T) accessHandshakerService(req *altspb.HandshakerReq) (*altspb.HandshakerResp, error)(*T) doHandshake(req *altspb.HandshakerReq) (net.Conn, *altspb.HandshakerResult, error)
processUntilDone processes the handshake until the handshaker service returns
the results. Handshaker service takes care of frame parsing, so we read
whatever received from the network and send it to the handshaker service.
*T : google.golang.org/grpc/credentials/alts/internal.Handshaker
Package-Level Functions (total 7, in which 4 are exported)
DefaultClientHandshakerOptions returns the default client handshaker options.
DefaultServerHandshakerOptions returns the default client handshaker options.
NewClientHandshaker creates a ALTS handshaker for GCP which contains an RPC
stub created using the passed conn and used to talk to the ALTS Handshaker
service in the metadata server.
NewServerHandshaker creates a ALTS handshaker for GCP which contains an RPC
stub created using the passed conn and used to talk to the ALTS Handshaker
service in the metadata server.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.