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

Function WithNamespaceClient

client/services.go:136–140  ·  view source on GitHub ↗

WithNamespaceClient sets the namespace service using a namespaces client.

(namespaceService namespacesapi.NamespacesClient)

Source from the content-addressed store, hash-verified

134
135// WithNamespaceClient sets the namespace service using a namespaces client.
136func WithNamespaceClient(namespaceService namespacesapi.NamespacesClient) ServicesOpt {
137 return func(s *services) {
138 s.namespaceStore = NewNamespaceStoreFromClient(namespaceService)
139 }
140}
141
142// WithNamespaceService sets the namespace service.
143func WithNamespaceService(namespaceService namespaces.Store) ServicesOpt {

Callers 1

WithInMemoryServicesFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…