asset

package
v0.0.0-...-a95d382 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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 AssetField) *ast.Field

DefaultFieldByName returns only default allocation filter fields by name.

func NewAssetFilterParser

func NewAssetFilterParser() ast.FilterParser

NewAssetFilterParser creates a new `ast.FilterParser` implementation which uses asset specific fields

Types

type AssetAlias

type AssetAlias string

AssetAlias represents an alias field type for assets. 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.

type AssetField

type AssetField string

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

If you add a AssetField, make sure to update field maps to return the correct Asset 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