MCPcopy Create free account
hub / github.com/coder/coder / ProtoFromDevcontainer

Function ProtoFromDevcontainer

codersdk/agentsdk/convert.go:461–474  ·  view source on GitHub ↗
(dc codersdk.WorkspaceAgentDevcontainer)

Source from the content-addressed store, hash-verified

459}
460
461func ProtoFromDevcontainer(dc codersdk.WorkspaceAgentDevcontainer) *proto.WorkspaceAgentDevcontainer {
462 var subagentID []byte
463 if dc.SubagentID.Valid {
464 subagentID = dc.SubagentID.UUID[:]
465 }
466
467 return &proto.WorkspaceAgentDevcontainer{
468 Id: dc.ID[:],
469 Name: dc.Name,
470 WorkspaceFolder: dc.WorkspaceFolder,
471 ConfigPath: dc.ConfigPath,
472 SubagentId: subagentID,
473 }
474}
475
476func ProtoFromPatchAppStatus(pas PatchAppStatus) (*proto.UpdateAppStatusRequest, error) {
477 state, ok := proto.UpdateAppStatusRequest_AppStatusState_value[strings.ToUpper(string(pas.State))]

Callers 1

ProtoFromDevcontainersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected