MCPcopy
hub / github.com/containerd/containerd / stream

Method stream

client/grpc.go:38–45  ·  view source on GitHub ↗
(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

36}
37
38func (ni namespaceInterceptor) stream(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) {
39 _, ok := namespaces.Namespace(ctx)
40 if !ok {
41 ctx = namespaces.WithNamespace(ctx, ni.namespace)
42 }
43
44 return streamer(ctx, desc, cc, method, opts...)
45}
46
47func newNSInterceptors(ns string) (grpc.UnaryClientInterceptor, grpc.StreamClientInterceptor) {
48 ni := namespaceInterceptor{

Callers

nothing calls this directly

Calls 2

NamespaceFunction · 0.92
WithNamespaceFunction · 0.92

Tested by

no test coverage detected