(workerNode *worker_node.WorkerNode)
| 38 | } |
| 39 | |
| 40 | func NewWorkerNodeApi(workerNode *worker_node.WorkerNode) *WnApiServer { |
| 41 | return &WnApiServer{ |
| 42 | workerNode: workerNode, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (w *WnApiServer) CreateSandbox(grpcCtx context.Context, in *proto.ServiceInfo) (*proto.SandboxCreationStatus, error) { |
| 47 | return w.workerNode.SandboxRuntime.CreateSandbox(grpcCtx, in) |