MCPcopy
hub / github.com/containerd/containerd / NewRemoteContainerStore

Function NewRemoteContainerStore

client/containerstore.go:42–46  ·  view source on GitHub ↗

NewRemoteContainerStore returns the container Store connected with the provided client

(client containersapi.ContainersClient)

Source from the content-addressed store, hash-verified

40
41// NewRemoteContainerStore returns the container Store connected with the provided client
42func NewRemoteContainerStore(client containersapi.ContainersClient) containers.Store {
43 return &remoteContainers{
44 client: client,
45 }
46}
47
48func (r *remoteContainers) Get(ctx context.Context, id string) (containers.Container, error) {
49 resp, err := r.client.Get(ctx, &containersapi.GetContainerRequest{

Callers 2

WithContainerClientFunction · 0.85
ContainerServiceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…