NewClientCreds constructs a client-side ALTS TransportCredentials object.
(opts *ClientOptions)
| 142 | |
| 143 | // NewClientCreds constructs a client-side ALTS TransportCredentials object. |
| 144 | func 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. |
| 149 | func NewServerCreds(opts *ServerOptions) credentials.TransportCredentials { |