terraform/helper
James Bardin 49439d02d1 sanitize provisioner output strings
The grpc protocol requires strings to be valid utf8, but because
provisioners often don't have control over the command output, invalid
utf8 sequences can make it into the response causing grpc transport
errors.

Replace all invalid utf sequences with the standard utf replacement
character in the provisioner output. The code is a direct copy from the
go1.13 std library, and can be replaced with strings.ToValidUTF8 once
it's available.
2019-11-06 14:57:52 -05:00
..
acctest Add 'RandIpAddress'. 2019-08-02 14:51:40 -04:00
config prune NewResourceConfig and update tests 2019-08-05 22:08:03 -04:00
copy
customdiff helper/customdiff: Helper functions for CustomizeDiff 2017-12-18 10:38:20 -08:00
didyoumean helper/didyoumean: helper library for "Did you mean ...? suggestions 2017-10-16 17:50:57 -07:00
encryption
experiment
hashcode hashcode: "Strings" function for hashing slices of strings 2017-10-20 14:54:23 -07:00
hilmapstructure
logging pretty-print json in http requests/responses 2018-08-09 12:27:58 -07:00
mutexkv
pathorcontents helper/pathorcontents: Skip one test when root 2018-09-19 11:38:51 -05:00
plugin sanitize provisioner output strings 2019-11-06 14:57:52 -05:00
resource vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
schema Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
shadow Make sure shadow.closeWalker doesn't copy Mutexes 2017-07-07 11:20:54 -04:00
signalwrapper
slowmessage
structure helper/structure: More cases for NormalizeJsonString tests 2018-01-17 15:53:38 -08:00
validation Merge pull request #18614 from craigatgoogle/float-validation 2019-05-06 17:56:56 -07:00
variables
wrappedreadline
wrappedstreams
README.md

README.md

Helper Libraries

This folder contains helper libraries for Terraform plugins. A running joke is that this is "Terraform standard library" for plugins. The goal of the packages in this directory are to provide high-level helpers to make it easier to implement the various aspects of writing a plugin for Terraform.