Documentation
¶
Overview ¶
Package value defines the recursive value representation stored in plans and state.
Index ¶
- type Kind
- type Value
- func Absent() Value
- func Boolean(v bool) Value
- func Decode(data []byte) (Value, error)
- func Integer(v int64) Value
- func List(items []Value) (Value, error)
- func Map(entries map[string]Value) (Value, error)
- func Null() Value
- func Number(v float64) (Value, error)
- func Object(fields map[string]Value) (Value, error)
- func Pending(refs []string) (Value, error)
- func String(v string) Value
- func (v Value) Boolean() (bool, bool)
- func (v Value) HasPending() bool
- func (v Value) Integer() (int64, bool)
- func (v Value) Items() ([]Value, bool)
- func (v Value) Kind() Kind
- func (v Value) MapEntries() (map[string]Value, bool)
- func (v Value) MarshalJSON() ([]byte, error)
- func (v Value) Number() (float64, bool)
- func (v Value) ObjectFields() (map[string]Value, bool)
- func (v Value) PendingRefs() ([]string, bool)
- func (v Value) String() (string, bool)
- func (v *Value) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func (Value) HasPending ¶
func (Value) MarshalJSON ¶
func (Value) PendingRefs ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.