MCPcopy
hub / github.com/containerd/containerd / WithContainerClient

Function WithContainerClient

client/services.go:94–98  ·  view source on GitHub ↗

WithContainerClient sets the container service to use using a containers client.

(containerService containersapi.ContainersClient)

Source from the content-addressed store, hash-verified

92
93// WithContainerClient sets the container service to use using a containers client.
94func WithContainerClient(containerService containersapi.ContainersClient) ServicesOpt {
95 return func(s *services) {
96 s.containerStore = NewRemoteContainerStore(containerService)
97 }
98}
99
100// WithContainerStore sets the container store.
101func WithContainerStore(containerStore containers.Store) ServicesOpt {

Callers 1

WithInMemoryServicesFunction · 0.85

Calls 1

NewRemoteContainerStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…