terraform/addrs
Martin Atkins 4833d2aa79 addrs: helper wrappers for parsing addresses in strings
Our "Parse..." functions all take hcl.Traversal objects rather than strings,
assuming that in most cases we've already parsed a traversal out of some
larger construct (usually a config file) before interpreting it as an
address.

However, there are some situations -- particularly tests -- where being
able to easily parse a string directly is helpful. These new "Parse...Str"
functions all wrap the function of the same name with no "Str" suffix and
first parse the string with the HCL native syntax traversal parser.

As noted in the function doc comments, this should not be used in "real"
code except in exceptional circumstances, since it creates addresses and
diagnostics that do not have useful source location information for
reporting diagnostics.
2018-10-16 18:48:28 -07:00
..
count_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
doc.go addrs: new package for representing addresses 2018-10-16 18:44:26 -07:00
input_variable.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
instance_key.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
local_value.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
module.go addrs: Module.Call method 2018-10-16 18:46:46 -07:00
module_call.go addrs: Helper methods for converting module calls to absolute modules 2018-10-16 18:46:46 -07:00
module_instance.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
output_value.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
parse_ref.go addrs: helper wrappers for parsing addresses in strings 2018-10-16 18:48:28 -07:00
parse_ref_test.go addrs: ParseRef function, for parsing references in expressions 2018-10-16 18:44:26 -07:00
parse_target.go addrs: helper wrappers for parsing addresses in strings 2018-10-16 18:48:28 -07:00
parse_target_test.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
path_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
provider_config.go addrs: Generate special string for invalid ProviderConfig 2018-10-16 18:48:28 -07:00
provider_config_test.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
referenceable.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
resource.go addrs: Resource.String shouldn't ever crash 2018-10-16 18:46:46 -07:00
resource_phase.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
resourcemode_string.go addrs: new package for representing addresses 2018-10-16 18:44:26 -07:00
self.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00
targetable.go addrs: flesh out functionality ready to replace terraform.ResourceAddress 2018-10-16 18:44:26 -07:00
terraform_attr.go addrs: All Referenceable implementations support String() 2018-10-16 18:44:26 -07:00