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

Function WithCredentialsBundle

dialoptions.go:461–465  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

459// Notice: This API is EXPERIMENTAL and may be changed or removed in a
460// later release.
461func 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.

Callers 15

mainFunction · 0.92
newConnFunction · 0.92
mainFunction · 0.92
createTestConnFunction · 0.92
dialOptsMethod · 0.92
TestCredsBundleBothMethod · 0.92
UnmarshalJSONMethod · 0.92
TestFailingProviderMethod · 0.92
TestCaReloadingMethod · 0.92

Calls 1

newFuncDialOptionFunction · 0.85

Tested by 11

TestCredsBundleBothMethod · 0.74
TestFailingProviderMethod · 0.74
TestCaReloadingMethod · 0.74
Test_SPIFFE_ReloadingMethod · 0.74
TestMTLSMethod · 0.74
Test_MTLS_SPIFFEMethod · 0.74
TestCredentialsMisuseMethod · 0.68