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

Method Create

integration/client/client_unix_test.go:158–167  ·  view source on GitHub ↗
(ctx context.Context, in *tasks.CreateTaskRequest, opts ...grpc.CallOption)

Source from the content-addressed store, hash-verified

156}
157
158func (ts *fakeTaskService) Create(ctx context.Context, in *tasks.CreateTaskRequest, opts ...grpc.CallOption) (*tasks.CreateTaskResponse, error) {
159 ts.Lock()
160 defer ts.Unlock()
161
162 ts.createRequests[in.ContainerID] = in
163 return &tasks.CreateTaskResponse{
164 ContainerID: in.ContainerID,
165 Pid: 1,
166 }, nil
167}
168
169func (ts *fakeTaskService) Get(ctx context.Context, in *tasks.GetRequest, opts ...grpc.CallOption) (*tasks.GetResponse, error) {
170 return nil, errgrpc.ToGRPC(errdefs.ErrNotFound)

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected