mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
add Close methods to the plugin interfaces
Close was previously an optional interface, because it's only applicable on the client side but the types were shared accross all packages. Since all plugins will now implement Close, it no longer needs to be optional.
This commit is contained in:
parent
c07ce1cd4b
commit
c39e9e107f
@ -62,6 +62,9 @@ type Interface interface {
|
|||||||
|
|
||||||
// ReadDataSource returns the data source's current state.
|
// ReadDataSource returns the data source's current state.
|
||||||
ReadDataSource(ReadDataSourceRequest) ReadDataSourceResponse
|
ReadDataSource(ReadDataSourceRequest) ReadDataSourceResponse
|
||||||
|
|
||||||
|
// Close shuts down the plugin process if applicable.
|
||||||
|
Close() error
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetSchemaResponse struct {
|
type GetSchemaResponse struct {
|
||||||
|
@ -32,6 +32,9 @@ type Interface interface {
|
|||||||
// stop somehow failed and that the user should expect potentially waiting
|
// stop somehow failed and that the user should expect potentially waiting
|
||||||
// a longer period of time.
|
// a longer period of time.
|
||||||
Stop() error
|
Stop() error
|
||||||
|
|
||||||
|
// Close shuts down the plugin process if applicable.
|
||||||
|
Close() error
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetSchemaResponse struct {
|
type GetSchemaResponse struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user