MCPcopy
hub / github.com/firecracker-microvm/firecracker-containerd / Exec

Method Exec

internal/vm/task_test.go:77–81  ·  view source on GitHub ↗
(_ context.Context, req *taskAPI.ExecProcessRequest)

Source from the content-addressed store, hash-verified

75}
76
77func (s *mockTaskService) Exec(_ context.Context, req *taskAPI.ExecProcessRequest) (*types.Empty, error) {
78 reqCh, _ := s.execRequests.LoadOrStore(req.ID, make(chan *taskAPI.ExecProcessRequest, 128))
79 reqCh.(chan *taskAPI.ExecProcessRequest) <- req
80 return nil, nil
81}
82
83func (s *mockTaskService) PopExecRequests(id string) (reqs []*taskAPI.ExecProcessRequest) {
84 reqCh, _ := s.execRequests.Load(id)

Callers 1

ExecProcessMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected