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

Function resourceNames

provisionerd/runner/runner.go:1099–1110  ·  view source on GitHub ↗
(rs []*sdkproto.Resource)

Source from the content-addressed store, hash-verified

1097}
1098
1099func resourceNames(rs []*sdkproto.Resource) []string {
1100 var sb strings.Builder
1101 names := make([]string, 0, len(rs))
1102 for _, r := range rs {
1103 _, _ = sb.WriteString(r.Type)
1104 _, _ = sb.WriteString(".")
1105 _, _ = sb.WriteString(r.Name)
1106 names = append(names, sb.String())
1107 sb.Reset()
1108 }
1109 return names
1110}
1111
1112func (r *Runner) failedWorkspaceBuildf(format string, args ...interface{}) *proto.FailedJob {
1113 failedJob := r.failedJobf(format, args...)

Callers 1

runWorkspaceBuildMethod · 0.85

Calls 3

WriteStringMethod · 0.80
ResetMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected