MCPcopy Index your code
hub / github.com/coder/coder / convertScripts

Function convertScripts

coderd/workspaceagents.go:1672–1678  ·  view source on GitHub ↗
(dbScripts []database.GetWorkspaceAgentScriptsByAgentIDsRow)

Source from the content-addressed store, hash-verified

1670}
1671
1672func convertScripts(dbScripts []database.GetWorkspaceAgentScriptsByAgentIDsRow) []codersdk.WorkspaceAgentScript {
1673 scripts := make([]codersdk.WorkspaceAgentScript, 0)
1674 for _, dbScript := range dbScripts {
1675 scripts = append(scripts, db2sdk.WorkspaceAgentScript(dbScript))
1676 }
1677 return scripts
1678}
1679
1680// @Summary Watch for workspace agent metadata updates
1681// @ID watch-for-workspace-agent-metadata-updates

Callers 3

workspaceAgentMethod · 0.85
convertWorkspaceBuildMethod · 0.85

Calls 1

WorkspaceAgentScriptFunction · 0.92

Tested by

no test coverage detected