types

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 9 modules, 68 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

Overview

The `types` package implements variable types which can be used in configurations. The supported types are `String`, `Duration`, `Int`, `UInt`, `Float`, `Bool` and `Task`. The `Task` type can either be a reference to a task by name, or instance. Binding from reference to an instance is done after configurations are parsed.

Index

Constants

View Source
const (
	ReIdentifier = `[a-zA-Z][a-zA-Z0-9_\-]*`
)

Variables

This section is empty.

Functions

func IsIdentifier

func IsIdentifier(s string) bool

Return true if the string is a valid identifier

Types

type Bool added in v1.0.48

type Bool bool

type Duration added in v1.0.48

type Duration time.Duration

func (*Duration) UnmarshalJSON added in v1.0.48

func (d *Duration) UnmarshalJSON(data []byte) error

type Float added in v1.0.48

type Float float64

type Int added in v1.0.48

type Int int64

type String added in v1.0.48

type String string

type Task added in v1.0.48

type Task struct {
	iface.Task
	Ref string
}

Task is a Task type, which can be either a reference to a task by name, or the instance. Binding from reference to an instance is done after configuration is parsed.

func (Task) String added in v1.0.48

func (t Task) String() string

type UInt added in v1.0.48

type UInt uint64

Jump to

Keyboard shortcuts

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