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

Function NewClientCreds

credentials/alts/alts.go:144–146  ·  view source on GitHub ↗

NewClientCreds constructs a client-side ALTS TransportCredentials object.

(opts *ClientOptions)

Source from the content-addressed store, hash-verified

142
143// NewClientCreds constructs a client-side ALTS TransportCredentials object.
144func NewClientCreds(opts *ClientOptions) credentials.TransportCredentials {
145 return newALTS(core.ClientSide, opts.TargetServiceAccounts, opts.HandshakerServiceAddress)
146}
147
148// NewServerCreds constructs a server-side ALTS TransportCredentials object.
149func NewServerCreds(opts *ServerOptions) credentials.TransportCredentials {

Callers 7

google.goFile · 0.92
mainFunction · 0.92
mainFunction · 0.92
createTestConnFunction · 0.92
mainFunction · 0.92
TestCloneClientMethod · 0.70

Calls 1

newALTSFunction · 0.85

Tested by 2

TestCloneClientMethod · 0.56