package core
import "google.golang.org/grpc/credentials/alts/core"
Package core contains common core functionality for ALTS. Disclaimer: users should NEVER reference this package directly.
Index ¶
Variables ¶
var PeerNotRespondingError = &peerNotRespondingError{}
PeerNotRespondingError is returned when a peer server is not responding after a channel has been established. It is treated as a temporary connection error and re-connection to the server should be attempted.
Types ¶
type Handshaker ¶
type Handshaker interface { // ClientHandshake starts and completes a client-side handshaking and // returns a secure connection and corresponding auth information. ClientHandshake(ctx context.Context) (net.Conn, credentials.AuthInfo, error) // ServerHandshake starts and completes a server-side handshaking and // returns a secure connection and corresponding auth information. ServerHandshake(ctx context.Context) (net.Conn, credentials.AuthInfo, error) // Close terminates the Handshaker. It should be called when the caller // obtains the secure connection. Close() }
Handshaker defines a ALTS handshaker interface.
type Side ¶
type Side int
Side identifies the party's role: client or server.
const ( // ClientSide identifies the client in this communication. ClientSide Side = iota // ServerSide identifies the server in this communication. ServerSide )
Source Files ¶
common.go
Directories ¶
Path | Synopsis |
---|---|
credentials/alts/core/authinfo | Package authinfo provide authentication information returned by handshakers. |
credentials/alts/core/conn | Package conn contains an implementation of a secure channel created by gRPC handshakers. |
credentials/alts/core/handshaker | Package handshaker provides ALTS handshaking functionality for GCP. |
credentials/alts/core/handshaker/service | Package service manages connections between the VM application and the ALTS handshaker service. |
credentials/alts/core/proto | |
credentials/alts/core/proto/grpc_gcp | Package grpc_gcp is a generated protocol buffer package. |
credentials/alts/core/testutil | Package testutil include useful test utilities for the handshaker. |
- Version
- v1.11.0
- Published
- Mar 27, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 4 minutes ago –
Tools for package owners.