ginresourcequeryhandler

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGinResourceQuery

func ParseGinResourceQuery(c *gin.Context) *rorresources.ResourceQuery

ParseGinResourceQuery parses a Gin context and returns a *rorresources.ResourceQuery object It handles the following query parameters: - q: A general query string - apiversion: The API version for the resource - kind: The kind of resource - ownerrefs: JSON array of owner references [{"scope": "...", "subject": "..."}] - uids: Comma-separated list of UIDs - fields: Comma-separated list of fields to include - sort: Comma-separated list of fields to sort by (+field for ascending, -field for descending) - filters: JSON array of filter objects [{"field":"field1","value":"value1","type":"string","operator":"eq"}] - offset: Starting offset for pagination - limit: Maximum number of results to return

func ParseResourceQueryFromURL

func ParseResourceQueryFromURL(urlStr string) (*rorresources.ResourceQuery, error)

ParseResourceQueryFromURL parses URL query parameters and returns a *rorresources.ResourceQuery object This is useful when you have a URL string instead of a Gin context

Types

This section is empty.

Jump to

Keyboard shortcuts

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