Documentation ¶
Index ¶
- func NewRange(filename string, startLine int, endLine int) baseRange
- type BoolValue
- type BytesValue
- type FakeReference
- type IntValue
- type MapValue
- type Metadata
- func (m Metadata) GetMetadata() *Metadata
- func (m Metadata) GetRawValue() interface{}
- func (m *Metadata) IsDefault() bool
- func (m *Metadata) IsExplicit() bool
- func (m *Metadata) IsManaged() bool
- func (m *Metadata) IsMultiLine() bool
- func (m *Metadata) IsUnmanaged() bool
- func (m *Metadata) Parent() *Metadata
- func (m *Metadata) Range() Range
- func (m *Metadata) Reference() Reference
- func (m *Metadata) String() string
- func (m *Metadata) WithParent(p Metadata) Metadata
- type Range
- type Reference
- type StringEqualityOption
- type StringValue
- type TimeValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolValue ¶
type BoolValue interface { Value() bool IsTrue() bool IsFalse() bool // contains filtered or unexported methods }
func BoolDefault ¶
func BoolExplicit ¶
func BoolUnresolvable ¶ added in v0.2.10
type BytesValue ¶
func Bytes ¶
func Bytes(value []byte, m Metadata) BytesValue
func BytesDefault ¶
func BytesDefault(value []byte, m Metadata) BytesValue
func BytesExplicit ¶
func BytesExplicit(value []byte, m Metadata) BytesValue
func BytesUnresolvable ¶ added in v0.3.10
func BytesUnresolvable(m Metadata) BytesValue
type FakeReference ¶
type FakeReference struct { }
func (*FakeReference) LogicalID ¶
func (f *FakeReference) LogicalID() string
func (*FakeReference) RefersTo ¶
func (f *FakeReference) RefersTo(r Reference) bool
func (*FakeReference) String ¶
func (f *FakeReference) String() string
type IntValue ¶
type IntValue interface { Value() int EqualTo(i int) bool NotEqualTo(i int) bool LessThan(i int) bool GreaterThan(i int) bool // contains filtered or unexported methods }
func IntDefault ¶
func IntExplicit ¶
func IntUnresolvable ¶ added in v0.2.10
type MapValue ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func NewMetadata ¶
func NewTestMetadata ¶ added in v0.5.5
func NewTestMetadata() Metadata
func NewUnmanagedMetadata ¶
func NewUnmanagedMetadata() Metadata
func (Metadata) GetMetadata ¶ added in v0.3.19
add this for structs built with composition
func (Metadata) GetRawValue ¶ added in v0.3.19
func (m Metadata) GetRawValue() interface{}
func (*Metadata) IsExplicit ¶
func (*Metadata) IsMultiLine ¶ added in v0.5.7
func (*Metadata) IsUnmanaged ¶ added in v0.4.1
func (*Metadata) WithParent ¶ added in v0.5.7
type StringEqualityOption ¶
type StringEqualityOption int
const (
IgnoreCase StringEqualityOption = iota
)
type StringValue ¶
type StringValue interface { Value() string IsEmpty() bool IsNotEmpty() bool IsOneOf(values ...string) bool EqualTo(value string, equalityOptions ...StringEqualityOption) bool NotEqualTo(value string, equalityOptions ...StringEqualityOption) bool StartsWith(prefix string, equalityOptions ...StringEqualityOption) bool EndsWith(suffix string, equalityOptions ...StringEqualityOption) bool Contains(value string, equalityOptions ...StringEqualityOption) bool // contains filtered or unexported methods }
func String ¶
func String(str string, m Metadata) StringValue
func StringDefault ¶
func StringDefault(value string, m Metadata) StringValue
func StringExplicit ¶
func StringExplicit(value string, m Metadata) StringValue
func StringUnresolvable ¶
func StringUnresolvable(m Metadata) StringValue
Click to show internal directories.
Click to hide internal directories.