listvariable

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 8 modules, 27 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(options ...Option) variable.Option

Types

type Builder

type Builder struct {
	ListVariableSpec dashboard.ListVariableSpec `json:",inline" yaml:",inline"`
	Filters          []v1.Variable              `json:"-" yaml:"-"`
}

type Option

type Option func(listVariableSpec *Builder) error

func AllowAllValue

func AllowAllValue(isAllValueAllowed bool) Option

func AllowMultiple

func AllowMultiple(isMultipleValuesAllowed bool) Option

func CapturingRegexp

func CapturingRegexp(regexp string) Option

func CustomAllValue

func CustomAllValue(value string) Option

func DefaultValue

func DefaultValue(value string) Option

func DefaultValues

func DefaultValues(values ...string) Option

func Description

func Description(description string) Option

func DisplayName

func DisplayName(displayName string) Option

func Filter

func Filter(variables ...v1.Variable) Option

func Hidden

func Hidden(isHidden bool) Option

func SortingBy

func SortingBy(sort variable.Sort) Option

Jump to

Keyboard shortcuts

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