cloudplugin1

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCCloudClient

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

GRPCCloudClient is the client interface for interacting with terraform-cloudplugin

func (GRPCCloudClient) Execute

func (c GRPCCloudClient) Execute(args []string, stdout, stderr io.Writer) int

Execute sends the client Execute request and waits for the plugin to return an exit code response before returning

type GRPCCloudPlugin

type GRPCCloudPlugin struct {
	plugin.GRPCPlugin
	Impl cloudplugin.Cloud1
}

GRPCCloudPlugin is the go-plugin implementation, but only the client implementation exists in this package.

func (*GRPCCloudPlugin) Client

func (p *GRPCCloudPlugin) Client(*plugin.MuxBroker, *rpc.Client) (interface{}, error)

Client always returns an error; we're only implementing the GRPCPlugin interface, not the Plugin interface.

func (*GRPCCloudPlugin) GRPCClient

func (p *GRPCCloudPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

GRPCClient returns a new GRPC client for interacting with the cloud plugin server.

func (*GRPCCloudPlugin) GRPCServer

func (p *GRPCCloudPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

GRPCServer always returns an error; we're only implementing the client interface, not the server.

func (*GRPCCloudPlugin) Server

func (p *GRPCCloudPlugin) Server(*plugin.MuxBroker) (interface{}, error)

Server always returns an error; we're only implementing the GRPCPlugin interface, not the Plugin interface.

Jump to

Keyboard shortcuts

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