Categorygithub.com/turbot/go-exec-communicator
modulepackage
0.0.0-20230412124734-9374347749b6
Repository: https://github.com/turbot/go-exec-communicator.git
Documentation: pkg.go.dev

# README

go-exec-communicator

Terraform has superpowers to run both remote and local commands with many different authentication methods and networking constructs through provisioners.

Unfortunately that code is hidden inside internal packages and hard to use.

This repository aims to extract those execution communication capabilities out into a simple, reusable package. Mostly for use in the Steampipe exec plugin.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

New returns a configured Communicator or an error if the connection type is not supported.
Retry retries the function f until it returns a nil error, a Fatal error, or the context expires.

# Structs

MockCommunicator is an implementation of Communicator that can be used for tests.

# Interfaces

Communicator is an interface that must be implemented by all communicators used for any of the provisioners.
Fatal is an interface that error values can return to halt Retry.