allocation

package
v0.0.0-...-6244b48 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFieldByName

func DefaultFieldByName(field AllocationField) *ast.Field

DefaultFieldByName returns only default allocation filter fields by name.

func NewAllocationFilterParser

func NewAllocationFilterParser() ast.FilterParser

NewAllocationFilterParser creates a new `ast.FilterParser` implementation which uses allocation specific fields

Types

type AllocationAlias

type AllocationAlias string

AllocationAlias represents an alias field type for allocations. Filtering based on label aliases (team, department, etc.) should be a responsibility of the query handler. By the time it reaches this structured representation, we shouldn't have to be aware of what is aliased to what. The aliases correspond to either a label or annotation, defined by the user.

type AllocationField

type AllocationField string

AllocationField is an enum that represents Allocation-specific fields that can be filtered on (namespace, label, etc.)

If you add a AllocationFilterField, make sure to update field maps to return the correct Allocation value does not enforce exhaustive pattern matching on "enum" types.

Jump to

Keyboard shortcuts

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