interval

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interval

type Interval struct {
	Builder sdk.TemplateVar
}

Interval represents a "interval" templated variable.

func New

func New(name string, options ...Option) *Interval

New creates a new "interval" templated variable.

type Option

type Option func(interval *Interval)

Option represents an option that can be used to configure an interval.

func Default

func Default(value string) Option

Default sets the default value of the variable.

func Hide

func Hide() Option

Hide ensures that the variable will not be displayed.

func HideLabel

func HideLabel() Option

HideLabel ensures that this variable's label will not be displayed.

func Label

func Label(label string) Option

Label sets the label of the variable.

func Values

func Values(values ValuesList) Option

Values sets the possible values for the variable.

type ValuesList

type ValuesList []string

ValuesList represent a list of options for an interval variable.

Jump to

Keyboard shortcuts

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