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: 6

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

type Bool bool

type Duration

type Duration time.Duration

func (*Duration) UnmarshalJSON

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

type Float

type Float float64

type Int

type Int int64

type String

type String string

type Task

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

func (t Task) String() string

type UInt

type UInt uint64

Jump to

Keyboard shortcuts

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