WithCredentialsBundle returns a DialOption to set a credentials bundle for the ClientConn.WithCreds. This should not be used together with WithTransportCredentials. # Experimental Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
(b credentials.Bundle)
| 459 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a |
| 460 | // later release. |
| 461 | func WithCredentialsBundle(b credentials.Bundle) DialOption { |
| 462 | return newFuncDialOption(func(o *dialOptions) { |
| 463 | o.copts.CredsBundle = b |
| 464 | }) |
| 465 | } |
| 466 | |
| 467 | // WithTimeout returns a DialOption that configures a timeout for dialing a |
| 468 | // ClientConn initially. This is valid if and only if WithBlock() is present. |