common

package
v0.0.0-...-e341b83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL