search

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchForResource

func SearchForResource(searchMgr *search.SearchManager, searchStorage storage.SearchStorage) http.HandlerFunc

SearchForResource returns an HTTP handler function that returns an array of Kubernetes runtime Object matched using the query from context. It utilizes a SearchManager to execute the logic.

@Summary SearchForResource returns an array of Kubernetes runtime Object matched using the query from context. @Description This endpoint returns an array of Kubernetes runtime Object matched using the query from context. @Tags search @Produce json @Param query query string true "The query to use for search. Required" @Param pattern query string true "The search pattern. Can be either sql or dsl. Required" @Param pageSize query string false "The size of the page. Default to 10" @Param page query string false "The current page to fetch. Default to 1" @Success 200 {array} runtime.Object "Array of runtime.Object" @Failure 400 {string} string "Bad Request" @Failure 401 {string} string "Unauthorized" @Failure 404 {string} string "Not Found" @Failure 405 {string} string "Method Not Allowed" @Failure 429 {string} string "Too Many Requests" @Failure 500 {string} string "Internal Server Error" @Router /rest-api/v1/search [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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