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

Interface ValidEnum

coderd/httpapi/queryparams.go:334–340  ·  view source on GitHub ↗

ValidEnum represents an enum that can be parsed and validated.

Source from the content-addressed store, hash-verified

332
333// ValidEnum represents an enum that can be parsed and validated.
334type ValidEnum interface {
335 // Add more types as needed (avoid importing large dependency trees).
336 ~string
337
338 // Valid is required on the enum type to be used with ParseEnum.
339 Valid() bool
340}
341
342// ParseEnum is a function that can be passed into ParseCustom that handles enum
343// validation.

Callers 8

providersFromEnvFunction · 0.65
postChatsMethod · 0.65

Implementers 7

Rolecoderd/rbac/roles.go
Permissioncoderd/rbac/roles.go
TallymanV1IngestEventcoderd/usage/usagetypes/tallyman.go
DCManagedAgentsV1coderd/usage/usagetypes/events.go
HBAISeatscoderd/usage/usagetypes/events.go
LicenseOptionsenterprise/coderd/coderdenttest/coderd
Responsesprovisioner/echo/serve.go

Calls

no outgoing calls

Tested by

no test coverage detected