diff --git a/providers/provider.go b/providers/provider.go index c4044b4be..7deb608a2 100644 --- a/providers/provider.go +++ b/providers/provider.go @@ -62,6 +62,9 @@ type Interface interface { // ReadDataSource returns the data source's current state. ReadDataSource(ReadDataSourceRequest) ReadDataSourceResponse + + // Close shuts down the plugin process if applicable. + Close() error } type GetSchemaResponse struct { diff --git a/provisioners/provisioner.go b/provisioners/provisioner.go index 93eda89df..e53c88488 100644 --- a/provisioners/provisioner.go +++ b/provisioners/provisioner.go @@ -32,6 +32,9 @@ type Interface interface { // stop somehow failed and that the user should expect potentially waiting // a longer period of time. Stop() error + + // Close shuts down the plugin process if applicable. + Close() error } type GetSchemaResponse struct {