state

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	Name     string          `json:"name" yaml:"name"`
	Value    interface{}     `json:"value" yaml:"value"`
	DataType string          `json:"dataType,omitempty" yaml:"dataType,omitempty"`
	Location *state.Location `json:"location,omitempty" yaml:"location,omitempty"`
	Default  interface{}     `json:"default,omitempty" yaml:"default,omitempty"`
}

Parameter represents a named value

type Parameters

type Parameters []*Parameter

Parameters is a collection of named values

func FromMap

func FromMap(m map[string]interface{}) Parameters

FromMap creates Parameters from a map

func (*Parameters) Add

func (p *Parameters) Add(name string, value interface{})

Add appends a parameter to the collection

func (Parameters) Get

func (p Parameters) Get(name string) (*Parameter, bool)

Get retrieves a parameter by name

func (Parameters) ToMap

func (p Parameters) ToMap() map[string]interface{}

ToMap converts Parameters to a map

Jump to

Keyboard shortcuts

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