tf5client

package
v0.0.0-...-6975224 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

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) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) ConfigureProvider

func (*Client) GetProviderSchema

func (c *Client) GetProviderSchema() (*typ.GetProviderSchemaResponse, typ.Diagnostics)

func (*Client) PlanResourceChange

func (*Client) ReadDataSource

func (*Client) ReadResource

func (*Client) Stop

func (c *Client) Stop(ctx context.Context) error

type GRPCClient

type GRPCClient struct {
	// contains filtered or unexported fields
}

func (*GRPCClient) ApplyResourceChange

ApplyResourceChange implements tfprotov5.ProviderServer

func (*GRPCClient) ConfigureProvider

ConfigureProvider implements tfprotov5.ProviderServer

func (*GRPCClient) GetProviderSchema

GetProviderSchema implements tfprotov5.ProviderServer

func (*GRPCClient) ImportResourceState

ImportResourceState implements tfprotov5.ProviderServer

func (*GRPCClient) PlanResourceChange

PlanResourceChange implements tfprotov5.ProviderServer

func (*GRPCClient) PrepareProviderConfig

PrepareProviderConfig implements tfprotov5.ProviderServer

func (*GRPCClient) ReadDataSource

ReadDataSource implements tfprotov5.ProviderServer

func (*GRPCClient) ReadResource

ReadResource implements tfprotov5.ProviderServer

func (*GRPCClient) StopProvider

StopProvider implements tfprotov5.ProviderServer

func (*GRPCClient) UpgradeResourceState

UpgradeResourceState implements tfprotov5.ProviderServer

func (*GRPCClient) ValidateDataSourceConfig

ValidateDataSourceConfig implements tfprotov5.ProviderServer

func (*GRPCClient) ValidateResourceTypeConfig

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL