MCPcopy Index your code
hub / github.com/containerd/containerd / unary

Method unary

client/grpc.go:30–36  ·  view source on GitHub ↗
(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

28}
29
30func (ni namespaceInterceptor) unary(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
31 _, ok := namespaces.Namespace(ctx)
32 if !ok {
33 ctx = namespaces.WithNamespace(ctx, ni.namespace)
34 }
35 return invoker(ctx, method, req, reply, cc, opts...)
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)

Callers

nothing calls this directly

Calls 3

NamespaceFunction · 0.92
WithNamespaceFunction · 0.92
invokerFuncType · 0.85

Tested by

no test coverage detected