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

Method NewWithMode

credentials/credentials.go:225–225  ·  view source on GitHub ↗

NewWithMode should make a copy of Bundle, and switch mode. Modifying the existing Bundle may cause races. NewWithMode returns nil if the requested mode is not supported.

(mode string)

Source from the content-addressed store, hash-verified

223 //
224 // NewWithMode returns nil if the requested mode is not supported.
225 NewWithMode(mode string) (Bundle, error)
226}
227
228// RequestInfo contains request data attached to the context passed to GetRequestMetadata calls.

Callers 2

dialOptsMethod · 0.65
BuildMethod · 0.65

Implementers 5

credscredentials/google/google.go
insecureBundlecredentials/insecure/insecure.go
testCredsBundlebalancer/rls/control_channel_test.go
testCredsBundletest/creds_test.go
bundleinternal/xds/bootstrap/tlscreds/bundle

Calls

no outgoing calls

Tested by

no test coverage detected