MCPcopy Create free account
hub / github.com/coder/coder / GetPresetParametersByPresetID

Method GetPresetParametersByPresetID

coderd/database/dbauthz/dbauthz.go:3965–3973  ·  view source on GitHub ↗
(ctx context.Context, presetID uuid.UUID)

Source from the content-addressed store, hash-verified

3963}
3964
3965func (q *querier) GetPresetParametersByPresetID(ctx context.Context, presetID uuid.UUID) ([]database.TemplateVersionPresetParameter, error) {
3966 // An actor can read template version presets if they can read the related template version.
3967 _, err := q.GetPresetByID(ctx, presetID)
3968 if err != nil {
3969 return nil, err
3970 }
3971
3972 return q.db.GetPresetParametersByPresetID(ctx, presetID)
3973}
3974
3975func (q *querier) GetPresetParametersByTemplateVersionID(ctx context.Context, args uuid.UUID) ([]database.TemplateVersionPresetParameter, error) {
3976 // An actor can read template version presets if they can read the related template version.

Callers

nothing calls this directly

Calls 2

GetPresetByIDMethod · 0.95

Tested by

no test coverage detected