MCPcopy
hub / github.com/containerd/containerd / Create

Method Create

core/sandbox/proxy/store.go:40–49  ·  view source on GitHub ↗
(ctx context.Context, sandbox sb.Sandbox)

Source from the content-addressed store, hash-verified

38}
39
40func (s *remoteSandboxStore) Create(ctx context.Context, sandbox sb.Sandbox) (sb.Sandbox, error) {
41 resp, err := s.client.Create(ctx, &api.StoreCreateRequest{
42 Sandbox: sb.ToProto(&sandbox),
43 })
44 if err != nil {
45 return sb.Sandbox{}, errgrpc.ToNative(err)
46 }
47
48 return sb.FromProto(resp.Sandbox), nil
49}
50
51func (s *remoteSandboxStore) Update(ctx context.Context, sandbox sb.Sandbox, fieldpaths ...string) (sb.Sandbox, error) {
52 resp, err := s.client.Update(ctx, &api.StoreUpdateRequest{

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected