Documentation ¶
Index ¶
- func NewRange(filename string, startLine int, endLine int) baseRange
- type BaseAttribute
- 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 NamedReference
- type Range
- type Reference
- type Source
- type StringEqualityOption
- type StringValue
- type TimeValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseAttribute ¶
type BaseAttribute struct {
// contains filtered or unexported fields
}
func (BaseAttribute) GetMetadata ¶
func (b BaseAttribute) GetMetadata() Metadata
type BoolValue ¶
type BoolValue interface { Value() bool IsTrue() bool IsFalse() bool // contains filtered or unexported methods }
func BoolDefault ¶
func BoolExplicit ¶
func BoolUnresolvable ¶
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 ¶
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 ¶
type MapValue ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
func NewExplicitMetadata ¶ added in v0.21.0
func NewMetadata ¶
func NewTestMetadata ¶
func NewTestMetadata() Metadata
func NewUnmanagedMetadata ¶
func NewUnmanagedMetadata() Metadata
func (Metadata) GetMetadata ¶
func (Metadata) GetRawValue ¶
func (m Metadata) GetRawValue() interface{}
func (Metadata) IsExplicit ¶
func (Metadata) IsMultiLine ¶
func (Metadata) IsUnmanaged ¶
func (Metadata) WithParent ¶
type NamedReference ¶ added in v0.19.0
type NamedReference struct {
// contains filtered or unexported fields
}
func (*NamedReference) LogicalID ¶ added in v0.19.0
func (f *NamedReference) LogicalID() string
func (*NamedReference) RefersTo ¶ added in v0.19.0
func (f *NamedReference) RefersTo(r Reference) bool
func (*NamedReference) String ¶ added in v0.19.0
func (f *NamedReference) String() string
type Reference ¶
func NewNamedReference ¶ added in v0.19.0
type StringEqualityOption ¶
type StringEqualityOption int
const ( IgnoreCase StringEqualityOption = iota IsPallindrome )
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.