github.com/terraform-linters/tflint-plugin-sdk@v0.22.0/plugin/internal/fromproto/doc.go (about)

     1  // Package fromproto contains an implementation to decode a structure
     2  // generated from *.proto into a real Go structure. This package is not
     3  // intended to be used directly from plugins.
     4  //
     5  // Many primitives can be handled as-is, but some interfaces and errors
     6  // require special decoding. The `hcl.Expression` restores the interface
     7  // by reparsed based on the bytes and their range. The `tflint.Rule`
     8  // restores the interface by filling the value in a pseudo-structure that
     9  // satisfies the interface. Error makes use of gRPC error details to recover
    10  // the wrapped error. Rewrap the error based on the error code obtained
    11  // from details.
    12  package fromproto