Documentation
¶
Index ¶
- type Client
- func (c *Client) ApplyResourceChange(ctx context.Context, request typ.ApplyResourceChangeRequest) (*typ.ApplyResourceChangeResponse, typ.Diagnostics)
- func (c *Client) CallFunction(ctx context.Context, request typ.CallFunctionRequest) (*typ.CallFunctionResponse, typ.Diagnostics)
- func (c *Client) Close()
- func (c *Client) ConfigureProvider(ctx context.Context, request typ.ConfigureProviderRequest) (*typ.ConfigureProviderResponse, typ.Diagnostics)
- func (c *Client) GetProviderSchema() (*typ.GetProviderSchemaResponse, typ.Diagnostics)
- func (c *Client) ImportResourceState(ctx context.Context, request typ.ImportResourceStateRequest) (*typ.ImportResourceStateResponse, typ.Diagnostics)
- func (c *Client) MoveResourceState(ctx context.Context, request typ.MoveResourceStateRequest) (*typ.MoveResourceStateResponse, typ.Diagnostics)
- func (c *Client) PlanResourceChange(ctx context.Context, request typ.PlanResourceChangeRequest) (*typ.PlanResourceChangeResponse, typ.Diagnostics)
- func (c *Client) ReadDataSource(ctx context.Context, request typ.ReadDataSourceRequest) (*typ.ReadDataSourceResponse, typ.Diagnostics)
- func (c *Client) ReadResource(ctx context.Context, request typ.ReadResourceRequest) (*typ.ReadResourceResponse, typ.Diagnostics)
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) UpgradeResourceState(ctx context.Context, request typ.UpgradeResourceStateRequest) (*typ.UpgradeResourceStateResponse, typ.Diagnostics)
- func (c *Client) ValidateDataResourceConfig(ctx context.Context, request typ.ValidateDataResourceConfigRequest) (*typ.ValidateDataResourceConfigResponse, typ.Diagnostics)
- func (c *Client) ValidateProviderConfig(ctx context.Context, request typ.ValidateProviderConfigRequest) (*typ.ValidateProviderConfigResponse, typ.Diagnostics)
- func (c *Client) ValidateResourceConfig(ctx context.Context, request typ.ValidateResourceConfigRequest) (*typ.ValidateResourceConfigResponse, typ.Diagnostics)
- type GRPCClient
- func (c *GRPCClient) ApplyResourceChange(ctx context.Context, req *tfprotov5.ApplyResourceChangeRequest) (*tfprotov5.ApplyResourceChangeResponse, error)
- func (c *GRPCClient) CallFunction(ctx context.Context, req *tfprotov5.CallFunctionRequest) (*tfprotov5.CallFunctionResponse, error)
- func (c *GRPCClient) ConfigureProvider(ctx context.Context, req *tfprotov5.ConfigureProviderRequest) (*tfprotov5.ConfigureProviderResponse, error)
- func (c *GRPCClient) GetFunctions(ctx context.Context, req *tfprotov5.GetFunctionsRequest) (*tfprotov5.GetFunctionsResponse, error)
- func (c *GRPCClient) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataRequest) (*tfprotov5.GetMetadataResponse, error)
- func (c *GRPCClient) GetProviderSchema(ctx context.Context, req *tfprotov5.GetProviderSchemaRequest) (*tfprotov5.GetProviderSchemaResponse, error)
- func (c *GRPCClient) ImportResourceState(ctx context.Context, req *tfprotov5.ImportResourceStateRequest) (*tfprotov5.ImportResourceStateResponse, error)
- func (c *GRPCClient) MoveResourceState(ctx context.Context, req *tfprotov5.MoveResourceStateRequest) (*tfprotov5.MoveResourceStateResponse, error)
- func (c *GRPCClient) PlanResourceChange(ctx context.Context, req *tfprotov5.PlanResourceChangeRequest) (*tfprotov5.PlanResourceChangeResponse, error)
- func (c *GRPCClient) PrepareProviderConfig(ctx context.Context, req *tfprotov5.PrepareProviderConfigRequest) (*tfprotov5.PrepareProviderConfigResponse, error)
- func (c *GRPCClient) ReadDataSource(ctx context.Context, req *tfprotov5.ReadDataSourceRequest) (*tfprotov5.ReadDataSourceResponse, error)
- func (c *GRPCClient) ReadResource(ctx context.Context, req *tfprotov5.ReadResourceRequest) (*tfprotov5.ReadResourceResponse, error)
- func (c *GRPCClient) StopProvider(ctx context.Context, req *tfprotov5.StopProviderRequest) (*tfprotov5.StopProviderResponse, error)
- func (c *GRPCClient) UpgradeResourceState(ctx context.Context, req *tfprotov5.UpgradeResourceStateRequest) (*tfprotov5.UpgradeResourceStateResponse, error)
- func (c *GRPCClient) ValidateDataSourceConfig(ctx context.Context, req *tfprotov5.ValidateDataSourceConfigRequest) (*tfprotov5.ValidateDataSourceConfigResponse, error)
- func (c *GRPCClient) ValidateResourceTypeConfig(ctx context.Context, req *tfprotov5.ValidateResourceTypeConfigRequest) (*tfprotov5.ValidateResourceTypeConfigResponse, error)
- type GRPCClientPlugin
- func (p *GRPCClientPlugin) Client(*plugin.MuxBroker, *rpc.Client) (interface{}, error)
- func (p *GRPCClientPlugin) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
- func (p *GRPCClientPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
- func (p *GRPCClientPlugin) Server(*plugin.MuxBroker) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles the client, or core side of the plugin rpc connection. The Client methods are mostly a translation layer between the terraform providers types and the grpc proto types, directly converting between the two.
func New ¶
func New(pluginClient *plugin.Client, grpcClient tfprotov5.ProviderServer, schema *typ.GetProviderSchemaResponse) (*Client, error)
func (*Client) ApplyResourceChange ¶
func (c *Client) ApplyResourceChange(ctx context.Context, request typ.ApplyResourceChangeRequest) (*typ.ApplyResourceChangeResponse, typ.Diagnostics)
func (*Client) CallFunction ¶
func (c *Client) CallFunction(ctx context.Context, request typ.CallFunctionRequest) (*typ.CallFunctionResponse, typ.Diagnostics)
func (*Client) ConfigureProvider ¶
func (c *Client) ConfigureProvider(ctx context.Context, request typ.ConfigureProviderRequest) (*typ.ConfigureProviderResponse, typ.Diagnostics)
func (*Client) GetProviderSchema ¶
func (c *Client) GetProviderSchema() (*typ.GetProviderSchemaResponse, typ.Diagnostics)
func (*Client) ImportResourceState ¶
func (c *Client) ImportResourceState(ctx context.Context, request typ.ImportResourceStateRequest) (*typ.ImportResourceStateResponse, typ.Diagnostics)
func (*Client) MoveResourceState ¶
func (c *Client) MoveResourceState(ctx context.Context, request typ.MoveResourceStateRequest) (*typ.MoveResourceStateResponse, typ.Diagnostics)
func (*Client) PlanResourceChange ¶
func (c *Client) PlanResourceChange(ctx context.Context, request typ.PlanResourceChangeRequest) (*typ.PlanResourceChangeResponse, typ.Diagnostics)
func (*Client) ReadDataSource ¶
func (c *Client) ReadDataSource(ctx context.Context, request typ.ReadDataSourceRequest) (*typ.ReadDataSourceResponse, typ.Diagnostics)
func (*Client) ReadResource ¶
func (c *Client) ReadResource(ctx context.Context, request typ.ReadResourceRequest) (*typ.ReadResourceResponse, typ.Diagnostics)
func (*Client) UpgradeResourceState ¶
func (c *Client) UpgradeResourceState(ctx context.Context, request typ.UpgradeResourceStateRequest) (*typ.UpgradeResourceStateResponse, typ.Diagnostics)
func (*Client) ValidateDataResourceConfig ¶
func (c *Client) ValidateDataResourceConfig(ctx context.Context, request typ.ValidateDataResourceConfigRequest) (*typ.ValidateDataResourceConfigResponse, typ.Diagnostics)
func (*Client) ValidateProviderConfig ¶
func (c *Client) ValidateProviderConfig(ctx context.Context, request typ.ValidateProviderConfigRequest) (*typ.ValidateProviderConfigResponse, typ.Diagnostics)
func (*Client) ValidateResourceConfig ¶
func (c *Client) ValidateResourceConfig(ctx context.Context, request typ.ValidateResourceConfigRequest) (*typ.ValidateResourceConfigResponse, typ.Diagnostics)
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func (*GRPCClient) ApplyResourceChange ¶
func (c *GRPCClient) ApplyResourceChange(ctx context.Context, req *tfprotov5.ApplyResourceChangeRequest) (*tfprotov5.ApplyResourceChangeResponse, error)
ApplyResourceChange implements tfprotov5.ProviderServer
func (*GRPCClient) CallFunction ¶
func (c *GRPCClient) CallFunction(ctx context.Context, req *tfprotov5.CallFunctionRequest) (*tfprotov5.CallFunctionResponse, error)
func (*GRPCClient) ConfigureProvider ¶
func (c *GRPCClient) ConfigureProvider(ctx context.Context, req *tfprotov5.ConfigureProviderRequest) (*tfprotov5.ConfigureProviderResponse, error)
ConfigureProvider implements tfprotov5.ProviderServer
func (*GRPCClient) GetFunctions ¶
func (c *GRPCClient) GetFunctions(ctx context.Context, req *tfprotov5.GetFunctionsRequest) (*tfprotov5.GetFunctionsResponse, error)
func (*GRPCClient) GetMetadata ¶
func (c *GRPCClient) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataRequest) (*tfprotov5.GetMetadataResponse, error)
func (*GRPCClient) GetProviderSchema ¶
func (c *GRPCClient) GetProviderSchema(ctx context.Context, req *tfprotov5.GetProviderSchemaRequest) (*tfprotov5.GetProviderSchemaResponse, error)
GetProviderSchema implements tfprotov5.ProviderServer
func (*GRPCClient) ImportResourceState ¶
func (c *GRPCClient) ImportResourceState(ctx context.Context, req *tfprotov5.ImportResourceStateRequest) (*tfprotov5.ImportResourceStateResponse, error)
ImportResourceState implements tfprotov5.ProviderServer
func (*GRPCClient) MoveResourceState ¶
func (c *GRPCClient) MoveResourceState(ctx context.Context, req *tfprotov5.MoveResourceStateRequest) (*tfprotov5.MoveResourceStateResponse, error)
func (*GRPCClient) PlanResourceChange ¶
func (c *GRPCClient) PlanResourceChange(ctx context.Context, req *tfprotov5.PlanResourceChangeRequest) (*tfprotov5.PlanResourceChangeResponse, error)
PlanResourceChange implements tfprotov5.ProviderServer
func (*GRPCClient) PrepareProviderConfig ¶
func (c *GRPCClient) PrepareProviderConfig(ctx context.Context, req *tfprotov5.PrepareProviderConfigRequest) (*tfprotov5.PrepareProviderConfigResponse, error)
PrepareProviderConfig implements tfprotov5.ProviderServer
func (*GRPCClient) ReadDataSource ¶
func (c *GRPCClient) ReadDataSource(ctx context.Context, req *tfprotov5.ReadDataSourceRequest) (*tfprotov5.ReadDataSourceResponse, error)
ReadDataSource implements tfprotov5.ProviderServer
func (*GRPCClient) ReadResource ¶
func (c *GRPCClient) ReadResource(ctx context.Context, req *tfprotov5.ReadResourceRequest) (*tfprotov5.ReadResourceResponse, error)
ReadResource implements tfprotov5.ProviderServer
func (*GRPCClient) StopProvider ¶
func (c *GRPCClient) StopProvider(ctx context.Context, req *tfprotov5.StopProviderRequest) (*tfprotov5.StopProviderResponse, error)
StopProvider implements tfprotov5.ProviderServer
func (*GRPCClient) UpgradeResourceState ¶
func (c *GRPCClient) UpgradeResourceState(ctx context.Context, req *tfprotov5.UpgradeResourceStateRequest) (*tfprotov5.UpgradeResourceStateResponse, error)
UpgradeResourceState implements tfprotov5.ProviderServer
func (*GRPCClient) ValidateDataSourceConfig ¶
func (c *GRPCClient) ValidateDataSourceConfig(ctx context.Context, req *tfprotov5.ValidateDataSourceConfigRequest) (*tfprotov5.ValidateDataSourceConfigResponse, error)
ValidateDataSourceConfig implements tfprotov5.ProviderServer
func (*GRPCClient) ValidateResourceTypeConfig ¶
func (c *GRPCClient) ValidateResourceTypeConfig(ctx context.Context, req *tfprotov5.ValidateResourceTypeConfigRequest) (*tfprotov5.ValidateResourceTypeConfigResponse, error)
ValidateResourceTypeConfig implements tfprotov5.ProviderServer
type GRPCClientPlugin ¶
type GRPCClientPlugin struct {
plugin.Plugin
}
func (*GRPCClientPlugin) Client ¶
func (p *GRPCClientPlugin) Client(*plugin.MuxBroker, *rpc.Client) (interface{}, error)
func (*GRPCClientPlugin) GRPCClient ¶
func (p *GRPCClientPlugin) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*GRPCClientPlugin) GRPCServer ¶
func (p *GRPCClientPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
func (*GRPCClientPlugin) Server ¶
func (p *GRPCClientPlugin) Server(*plugin.MuxBroker) (interface{}, error)