MCPcopy Index your code
hub / github.com/bytebase/bytebase / isValidResourceID

Function isValidResourceID

backend/api/v1/common.go:43–45  ·  view source on GitHub ↗
(resourceID string)

Source from the content-addressed store, hash-verified

41}
42
43func isValidResourceID(resourceID string) bool {
44 return resourceIDMatcher.MatchString(resourceID)
45}
46
47// validateLabels validates labels according to the requirements.
48// Labels must follow these rules:

Callers 7

CreateDatabaseGroupMethod · 0.85
TestIsValidResourceIDFunction · 0.85
CreateProjectMethod · 0.85
validateEnvironmentsMethod · 0.85
CreateInstanceMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestIsValidResourceIDFunction · 0.68