Documentation
¶
Overview ¶
Package project provides validators for Google Cloud Project identifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidProjectID ¶
IsValidProjectID validates a Google Cloud Project ID.
A valid Project ID must:
- Be 6 to 30 characters long
- Start with a lowercase letter
- Contain only ASCII lowercase letters, digits, and hyphens
- Not end with a hyphen
func IsValidProjectLocationParent ¶
IsValidProjectLocationParent validates a project/location parent path.
Accepted structure:
- projects/{project}/locations/{location}
Segment rules:
- {project} must satisfy IsValidProjectID
- {location} must satisfy location.IsValidLocation
Note: This validates structure only, not whether the resource exists.
func IsValidProjectName ¶
IsValidProjectName validates a Google Cloud Project display name.
A valid Project Name must:
- Be 4 to 30 characters long
- Contain only letters, numbers, single quotes, hyphens, spaces, or exclamation points
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.