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

Function convertProvisionedApps

coderd/workspaceagents.go:1654–1656  ·  view source on GitHub ↗

convertProvisionedApps converts applications that are in the middle of provisioning process. It means that they may not have an agent or workspace assigned (dry-run job).

(dbApps []database.WorkspaceApp)

Source from the content-addressed store, hash-verified

1652// convertProvisionedApps converts applications that are in the middle of provisioning process.
1653// It means that they may not have an agent or workspace assigned (dry-run job).
1654func convertProvisionedApps(dbApps []database.WorkspaceApp) []codersdk.WorkspaceApp {
1655 return db2sdk.Apps(dbApps, []database.WorkspaceAppStatus{}, database.WorkspaceAgent{}, "", database.WorkspaceTable{})
1656}
1657
1658func convertLogSources(dbLogSources []database.WorkspaceAgentLogSource) []codersdk.WorkspaceAgentLogSource {
1659 logSources := make([]codersdk.WorkspaceAgentLogSource, 0)

Callers 1

Calls 1

AppsFunction · 0.92

Tested by

no test coverage detected