allocation

package
v1.120.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAutocompleteResultLimit = 100
View Source
const MaxAutocompleteResultLimit = 1000

Variables

View Source
var ErrAutocompleteBadRequest = errors.New("autocomplete bad request")

ErrAutocompleteBadRequest indicates a client error in an autocomplete request.

Functions

func IsAutocompleteBadRequest

func IsAutocompleteBadRequest(err error) bool

IsAutocompleteBadRequest reports whether err is a client validation error.

Types

type AllocationAutocompleteRequest

type AllocationAutocompleteRequest struct {
	Search      string
	Field       string
	Limit       int
	Window      opencost.Window
	Filter      filter.Filter
	LabelConfig *opencost.LabelConfig
}

type AllocationAutocompleteResponse

type AllocationAutocompleteResponse struct {
	Data []string `json:"data"`
}

type AutocompleteQueryService

type AutocompleteQueryService interface {
	QueryAllocationAutocomplete(AllocationAutocompleteRequest, context.Context) (*AllocationAutocompleteResponse, error)
}

Jump to

Keyboard shortcuts

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