Documentation
¶
Index ¶
- func WithEnv() option
- func WithOther(v Variables) option
- func WithRaw(v map[string]interface{}) option
- func WithVars(v map[string]interface{}) option
- type Variables
- func (v Variables) DeepCopy() Variables
- func (v Variables) MarshalJSON() ([]byte, error)
- func (v Variables) MarshalYAML() (interface{}, error)
- func (v Variables) Merge(other Variables) Variables
- func (v Variables) Raw() map[string]interface{}
- func (v *Variables) UnmarshalJSON(b []byte) error
- func (v *Variables) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEnv ¶
func WithEnv() option
WithEnv takes all the available environment variables and puts them in the environment namespace of the new Variables instance
func WithOther ¶
func WithOther(v Variables) option
WithOther places the provided map in the variables namespace of the Variables
Types ¶
type Variables ¶
type Variables struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...option) Variables
New returns a new Variables instance that has the provided map set as the main variables namespace and an empty environment namespace
func (Variables) MarshalJSON ¶ added in v0.3.3
func (Variables) MarshalYAML ¶
func (Variables) Merge ¶
Merge another variable instance with this one and return a copy of the result not modifying the original set of variables
func (*Variables) UnmarshalJSON ¶ added in v0.3.3
func (*Variables) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.