Documentation ¶
Index ¶
- type HCLEntry
- type Match
- func (m *Match) AOfType(providerFeature, providerFeatureType string) error
- func (m *Match) AOfTypeNamed(providerFeature, providerFeatureType, instanceName string) error
- func (m *Match) AlwaysAttributeDoesNotEqual(searchKey string, searchValue string) error
- func (m *Match) AlwaysAttributeDoesNotEqualInt(searchKey string, searchValue int) error
- func (m *Match) AlwaysAttributeEquals(searchKey, searchValue string) error
- func (m *Match) AlwaysAttributeEqualsInt(searchKey string, searchValue int) error
- func (m *Match) AlwaysAttributeGreaterThan(searchKey string, searchValue int) error
- func (m *Match) AlwaysAttributeLessThan(searchKey string, searchValue int) error
- func (m *Match) AlwaysAttributeRegex(attributeName, regexString string) error
- func (m *Match) AttributeDoesNotEqual(searchKey, searchValue string) error
- func (m *Match) AttributeDoesNotEqualInt(searchKey string, searchValue int) error
- func (m *Match) AttributeEquals(searchKey, searchValue string) error
- func (m *Match) AttributeEqualsInt(searchKey string, searchValue int) error
- func (m *Match) AttributeExists(searchKey string) error
- func (m *Match) AttributeGreaterThan(searchKey string, searchValue int) error
- func (m *Match) AttributeLessThan(searchKey string, searchValue int) error
- func (m *Match) AttributeRegex(attributeName, regexString string) error
- func (m *Match) HCL2() error
- func (m *Match) ItOccursAtLeastTimes(count int) error
- func (m *Match) ItOccursAtMostTimes(count int) error
- func (m *Match) ItOccursExactlyTimes(count int) error
- func (m *Match) ReadTerraform(tpath string, unmarshal Unmarshaller) error
- func (m *Match) Terraform() error
- type Unmarshaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Match ¶
func (*Match) AOfType ¶
AOfTypeNamed will match a feature type and feature name exactly from the terraform. all instance names will be included
func (*Match) AOfTypeNamed ¶
AOfTypeNamed will match a feature type, feature name and instance name exactly from the terraform
func (*Match) AlwaysAttributeDoesNotEqual ¶ added in v0.5.0
AlwaysAttributeDoesNotEqual - all elements' attr of search key must not match the search value
func (*Match) AlwaysAttributeDoesNotEqualInt ¶ added in v0.5.0
AlwaysAttributeDoesNotEqualInt - all elements' attr of search key must not match the search value
func (*Match) AlwaysAttributeEquals ¶ added in v0.5.0
AlwaysAttributeEquals - requires all elements to have an exact match on attributes or it fails
func (*Match) AlwaysAttributeEqualsInt ¶ added in v0.5.0
AlwaysAttributeEqualsInt - requires all elements to have an exact match on attributes or it fails
func (*Match) AlwaysAttributeGreaterThan ¶ added in v0.5.0
func (*Match) AlwaysAttributeLessThan ¶ added in v0.5.0
func (*Match) AlwaysAttributeRegex ¶ added in v0.5.0
AlwaysAttributeRegex - Check if all elements match regex
func (*Match) AttributeDoesNotEqual ¶
AttributeEquals will filter on a match of key where value is not a match or it will return an error
func (*Match) AttributeDoesNotEqualInt ¶ added in v0.2.0
AttributeDoesNotEqualInt will filter on a full match of key value or it will return an error
func (*Match) AttributeEquals ¶
AttributeEquals will filter on a full match of key value or it will return an error
func (*Match) AttributeEqualsInt ¶ added in v0.2.0
AttributeEqualsInt will filter on a full match of key value or it will return an error
func (*Match) AttributeExists ¶
AttributeExists will filter the set to only matching elements or it will return an error
func (*Match) AttributeGreaterThan ¶
AttributeGreaterThan - will match (assuming int) for a greater than evaluation
func (*Match) AttributeLessThan ¶
AttributeLessThan - will match (assuming int) for a less than evaluation
func (*Match) AttributeRegex ¶
AttributeRegex - will use a regex to see if attributes value is a match
func (*Match) HCL2 ¶ added in v0.7.0
HCL2 a simple matcher to show intent to init from a hcl2 terraform in current directory
func (*Match) ItOccursAtLeastTimes ¶
ItOccursAtLeastTimes - will check how many results are in our filter and make sure we have at least that
func (*Match) ItOccursAtMostTimes ¶
ItOccursAtMostTimes - will check how many results are in our filter and make sure we have at most that
func (*Match) ItOccursExactlyTimes ¶
ItOccursExactlyTimes - will check how many results are in our filter and make sure we have at exactly that
func (*Match) ReadTerraform ¶
func (m *Match) ReadTerraform(tpath string, unmarshal Unmarshaller) error
ReadTerrraform a simple matcher to init from terraform in a given directory
type Unmarshaller ¶ added in v0.7.0
func GetUnmarshallerVersion ¶ added in v0.7.0
func GetUnmarshallerVersion(version int) Unmarshaller