Versions in this module Expand all Collapse all v1 v1.51.4 Oct 3, 2022 Changes in this version + var ErrUntrustedPlatform = errors.New("ALTS: untrusted platform. ALTS is only supported on GCP") + func ClientAuthorizationCheck(ctx context.Context, expectedServiceAccounts []string) error + func NewClientCreds(opts *ClientOptions) credentials.TransportCredentials + func NewServerCreds(opts *ServerOptions) credentials.TransportCredentials + type AuthInfo interface + ApplicationProtocol func() string + LocalServiceAccount func() string + PeerRPCVersions func() *altspb.RpcProtocolVersions + PeerServiceAccount func() string + RecordProtocol func() string + SecurityLevel func() altspb.SecurityLevel + func AuthInfoFromContext(ctx context.Context) (AuthInfo, error) + func AuthInfoFromPeer(p *peer.Peer) (AuthInfo, error) + type ClientOptions struct + HandshakerServiceAddress string + TargetServiceAccounts []string + func DefaultClientOptions() *ClientOptions + type ServerOptions struct + HandshakerServiceAddress string + func DefaultServerOptions() *ServerOptions