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

Function InvalidatedPresets

coderd/database/db2sdk/db2sdk.go:1512–1522  ·  view source on GitHub ↗
(invalidatedPresets []database.UpdatePresetsLastInvalidatedAtRow)

Source from the content-addressed store, hash-verified

1510}
1511
1512func InvalidatedPresets(invalidatedPresets []database.UpdatePresetsLastInvalidatedAtRow) []codersdk.InvalidatedPreset {
1513 var presets []codersdk.InvalidatedPreset
1514 for _, p := range invalidatedPresets {
1515 presets = append(presets, codersdk.InvalidatedPreset{
1516 TemplateName: p.TemplateName,
1517 TemplateVersionName: p.TemplateVersionName,
1518 PresetName: p.TemplateVersionPresetName,
1519 })
1520 }
1521 return presets
1522}
1523
1524// sanitizeCredentialHint ensures the hint looks masked before exposing
1525// it in the API. The aibridge library uses "..." as the masking

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected