value

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ValueParameterType = "value"

ValueParameterType specifies the type of the parameter used in config files

Variables

View Source
var ValueParameterSerde = parameter.ParameterSerDe{
	Serializer:   writeValueParameter,
	Deserializer: parseValueParameter,
}

Functions

This section is empty.

Types

type ValueParameter

type ValueParameter struct {
	Value interface{}
}

ValueParameter represents a simple value. the value has to be resolve at config load time.

func New

func New(value interface{}) *ValueParameter

func (*ValueParameter) GetReferences

func (p *ValueParameter) GetReferences() []parameter.ParameterReference

func (*ValueParameter) GetType

func (p *ValueParameter) GetType() string

func (*ValueParameter) ResolveValue

func (p *ValueParameter) ResolveValue(_ parameter.ResolveContext) (interface{}, error)

Jump to

Keyboard shortcuts

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