Help us shape the future of Go! Take the 2026 Go Developer Survey

applicationinput

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistableValues

func PersistableValues(result Result) map[string]string

func SecretValues

func SecretValues(result Result) map[string]string

Types

type Class

type Class string
const (
	ClassDefault   Class = "default"
	ClassGenerated Class = "generated"
	ClassExternal  Class = "external"
)

type Condition

type Condition struct {
	Input  string
	Equals string
}

type Definition

type Definition struct {
	Name       string
	Label      string
	Class      Class
	Default    string
	Secret     bool
	Required   bool
	RequiredIf *Condition
}

type Generator

type Generator func(Definition) (string, error)

type Result

type Result struct {
	Values     map[string]Value
	Unresolved []Definition
}

func Resolve

func Resolve(definitions []Definition, supplied map[string]string, generate Generator) (Result, error)

type Source

type Source string
const (
	SourceSupplied  Source = "supplied"
	SourceDefault   Source = "default"
	SourceGenerated Source = "generated"
)

type Value

type Value struct {
	Name   string
	Value  string
	Secret bool
	Source Source
}

func (Value) String

func (v Value) String() string

Jump to

Keyboard shortcuts

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