Documentation
¶
Overview ¶
Package common provides shared helpers for api-server plugin handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyProjectScope ¶
func ApplyProjectScope(r *http.Request, listArgs *services.ListArguments) *errors.ServiceError
ApplyProjectScope reads the project ID from the query parameter or the X-Ambient-Project header (query param takes precedence) and injects a project_id filter into listArgs.Search. Returns a validation error if the project ID contains unsafe characters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.