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
Click to show internal directories.
Click to hide internal directories.