github.com/pulumi/terraform@v1.4.0/pkg/terraform/ui_output_provisioner.go (about) 1 package terraform 2 3 import ( 4 "github.com/pulumi/terraform/pkg/addrs" 5 ) 6 7 // ProvisionerUIOutput is an implementation of UIOutput that calls a hook 8 // for the output so that the hooks can handle it. 9 type ProvisionerUIOutput struct { 10 InstanceAddr addrs.AbsResourceInstance 11 ProvisionerType string 12 Hooks []Hook 13 } 14 15 func (o *ProvisionerUIOutput) Output(msg string) { 16 for _, h := range o.Hooks { 17 h.ProvisionOutput(o.InstanceAddr, o.ProvisionerType, msg) 18 } 19 }