plugin

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package plugin contains types and functions to help Terraform plugins implement the plugin rpc interface. The primary Provider type will be responsible for converting from the grpc wire protocol to the types and methods known to the provider implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUnknowns

func SetUnknowns(val cty.Value, schema *configschema.Block) cty.Value

SetUnknowns takes a cty.Value, and compares it to the schema setting any null values which are computed to unknown.

Types

type GRPCProviderServer

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

GRPCProviderServer handles the server, or plugin side of the rpc connection.

func NewGRPCProviderServerShim

func NewGRPCProviderServerShim(p terraform.ResourceProvider) *GRPCProviderServer

NewGRPCProviderServerShim wraps a terraform.ResourceProvider in a proto.ProviderServer implementation. If the provided provider is not a *schema.Provider, this will return nil,

func (*GRPCProviderServer) Configure

func (*GRPCProviderServer) PlanResourceChange

func (*GRPCProviderServer) ReadDataSource

func (*GRPCProviderServer) ReadResource

func (*GRPCProviderServer) Stop

Jump to

Keyboard shortcuts

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