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

Method String

coderd/schedule/cron/cron.go:143–150  ·  view source on GitHub ↗

String serializes the schedule to its original format. The leading CRON_TZ is maintained.

()

Source from the content-addressed store, hash-verified

141// String serializes the schedule to its original format.
142// The leading CRON_TZ is maintained.
143func (s Schedule) String() string {
144 var sb strings.Builder
145 _, _ = sb.WriteString("CRON_TZ=")
146 _, _ = sb.WriteString(s.sched.Location.String())
147 _, _ = sb.WriteString(" ")
148 _, _ = sb.WriteString(s.cronStr)
149 return sb.String()
150}
151
152// Humanize returns a slightly more human-friendly representation of the
153// schedule.

Callers 12

parseAIProviderNameFunction · 0.45
TestSearchWorkspaceFunction · 0.45
TestSearchAuditFunction · 0.45
TestSearchConnectionLogsFunction · 0.45
TestSearchUsersFunction · 0.45
TestSearchTemplatesFunction · 0.45
TestSearchTasksFunction · 0.45
TestSearchChatsFunction · 0.45
CalculateAutostopFunction · 0.45
HumanizeMethod · 0.45
DaysOfWeekMethod · 0.45
Test_WeeklyFunction · 0.45

Calls 1

WriteStringMethod · 0.80

Tested by 8

TestSearchWorkspaceFunction · 0.36
TestSearchAuditFunction · 0.36
TestSearchConnectionLogsFunction · 0.36
TestSearchUsersFunction · 0.36
TestSearchTemplatesFunction · 0.36
TestSearchTasksFunction · 0.36
TestSearchChatsFunction · 0.36
Test_WeeklyFunction · 0.36