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

Function dbAgentScriptsToProto

coderd/agentapi/manifest.go:187–193  ·  view source on GitHub ↗
(scripts []database.GetWorkspaceAgentScriptsByAgentIDsRow)

Source from the content-addressed store, hash-verified

185}
186
187func dbAgentScriptsToProto(scripts []database.GetWorkspaceAgentScriptsByAgentIDsRow) []*agentproto.WorkspaceAgentScript {
188 ret := make([]*agentproto.WorkspaceAgentScript, len(scripts))
189 for i, script := range scripts {
190 ret[i] = dbAgentScriptToProto(script)
191 }
192 return ret
193}
194
195func dbAgentScriptToProto(script database.GetWorkspaceAgentScriptsByAgentIDsRow) *agentproto.WorkspaceAgentScript {
196 return &agentproto.WorkspaceAgentScript{

Callers 1

GetManifestMethod · 0.85

Calls 1

dbAgentScriptToProtoFunction · 0.85

Tested by

no test coverage detected